projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
169eb57
)
scsi: scsi_debug: Fix memory leak if LBP enabled and module is unloaded
author
Ewan D. Milne
<emilne@redhat.com>
Wed, 26 Oct 2016 15:22:53 +0000
(11:22 -0400)
committer
Sasha Levin
<alexander.levin@verizon.com>
Sat, 26 Nov 2016 03:57:03 +0000
(22:57 -0500)
[ Upstream commit
4d2b496f19f3c2cfaca1e8fa0710688b5ff3811d
]
map_storep was not being vfree()'d in the module_exit call.
Cc: <stable@vger.kernel.org>
Signed-off-by: Ewan D. Milne <emilne@redhat.com>
Reviewed-by: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/scsi/scsi_debug.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/scsi_debug.c
b/drivers/scsi/scsi_debug.c
index 1f8e2dc9c616a0b7e02559537c05b109123b5b80..c07d1cd28e916b04e516d7f39d1c069e5e71f0e2 100644
(file)
--- a/
drivers/scsi/scsi_debug.c
+++ b/
drivers/scsi/scsi_debug.c
@@
-4993,6
+4993,7
@@
static void __exit scsi_debug_exit(void)
if (dif_storep)
vfree(dif_storep);
+ vfree(map_storep);
vfree(fake_storep);
}