aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-4.14/950-0152-vcsm-Fix-memory-leaking-on-clean_invalid2-ioctl-hand.patch
blob: ebb490d926508adfe61b5078442dc2d6fe347471 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From d52c0da67a825372cf071dfe118b23a6bca43e5a Mon Sep 17 00:00:00 2001
From: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
Date: Mon, 8 Jan 2018 21:11:23 +0900
Subject: [PATCH 152/454] vcsm: Fix memory leaking on clean_invalid2 ioctl
 handler

Signed-off-by: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
---
 drivers/char/broadcom/vc_sm/vmcs_sm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/char/broadcom/vc_sm/vmcs_sm.c
+++ b/drivers/char/broadcom/vc_sm/vmcs_sm.c
@@ -2990,7 +2990,7 @@ static long vc_sm_ioctl(struct file *fil
 							op->block_count, op->block_size,
 							op->inter_block_stride, op->invalidate_mode);
 					if (ret)
-						goto out;
+						break;
 				}
 				kfree(block);
 			}