projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a03031
)
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
Willy Tarreau
<w@1wt.eu>
Fri, 10 Feb 2017 10:03:22 +0000
(11:03 +0100)
commit
4d2b496f19f3c2cfaca1e8fa0710688b5ff3811d
upstream.
map_storep was not being vfree()'d in the module_exit call.
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: Willy Tarreau <w@1wt.eu>
drivers/scsi/scsi_debug.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/scsi_debug.c
b/drivers/scsi/scsi_debug.c
index 0a537a0515ca6c6c37829fb3c45f1fe8aa20c4de..be86e7a02bbc0101eb3ed16a32063070c2a6eba6 100644
(file)
--- a/
drivers/scsi/scsi_debug.c
+++ b/
drivers/scsi/scsi_debug.c
@@
-3504,6
+3504,7
@@
static void __exit scsi_debug_exit(void)
bus_unregister(&pseudo_lld_bus);
root_device_unregister(pseudo_primary);
+ vfree(map_storep);
if (dif_storep)
vfree(dif_storep);