1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/root/target/linux/brcm2708/patches-4.14/0170-vcsm-Fix-memory-leaking-on-clean_invalid2-ioctl-hand.patch
2018-03-23 21:58:08 +01:00

27 lines
925 B
Diff

From db94f2d8cd525644b1d02ff762557283b7005b29 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 170/277] 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(-)
diff --git a/drivers/char/broadcom/vc_sm/vmcs_sm.c b/drivers/char/broadcom/vc_sm/vmcs_sm.c
index 95963ffba51a..380437f41cc6 100644
--- 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 *file, unsigned int cmd, unsigned long arg)
op->block_count, op->block_size,
op->inter_block_stride, op->invalidate_mode);
if (ret)
- goto out;
+ break;
}
kfree(block);
}
--
2.16.1