mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
scsi: scsi_debug: Fix memory leak if LBP enabled and module is unloaded
commit 4d2b496f19 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9075faf140
commit
69ee0ed0c6
|
|
@ -4981,6 +4981,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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user