ebb490d926508adfe61b5078442dc2d6fe347471
[openwrt/staging/lynxis.git] / target / linux / brcm2708 / patches-4.14 / 950-0152-vcsm-Fix-memory-leaking-on-clean_invalid2-ioctl-hand.patch
1 From d52c0da67a825372cf071dfe118b23a6bca43e5a Mon Sep 17 00:00:00 2001
2 From: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
3 Date: Mon, 8 Jan 2018 21:11:23 +0900
4 Subject: [PATCH 152/454] vcsm: Fix memory leaking on clean_invalid2 ioctl
5 handler
6
7 Signed-off-by: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
8 ---
9 drivers/char/broadcom/vc_sm/vmcs_sm.c | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12 --- a/drivers/char/broadcom/vc_sm/vmcs_sm.c
13 +++ b/drivers/char/broadcom/vc_sm/vmcs_sm.c
14 @@ -2990,7 +2990,7 @@ static long vc_sm_ioctl(struct file *fil
15 op->block_count, op->block_size,
16 op->inter_block_stride, op->invalidate_mode);
17 if (ret)
18 - goto out;
19 + break;
20 }
21 kfree(block);
22 }