diff options
author | Ewan D. Milne <emilne@redhat.com> | 2016-10-26 17:22:53 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-10-27 04:14:50 +0200 |
commit | 4d2b496f19f3c2cfaca1e8fa0710688b5ff3811d (patch) | |
tree | 732fdb9b77cc3746a60e0fa5eee80b423f88dc38 /drivers | |
parent | scsi: megaraid_sas: Fix data integrity failure for JBOD (passthrough) devices (diff) | |
download | linux-4d2b496f19f3c2cfaca1e8fa0710688b5ff3811d.tar.xz linux-4d2b496f19f3c2cfaca1e8fa0710688b5ff3811d.zip |
scsi: scsi_debug: Fix memory leak if LBP enabled and module is unloaded
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/scsi_debug.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c index c905709707f0..cf04a364fd8b 100644 --- a/drivers/scsi/scsi_debug.c +++ b/drivers/scsi/scsi_debug.c @@ -5134,6 +5134,7 @@ static void __exit scsi_debug_exit(void) bus_unregister(&pseudo_lld_bus); root_device_unregister(pseudo_primary); + vfree(map_storep); vfree(dif_storep); vfree(fake_storep); kfree(sdebug_q_arr); |