mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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: <[email protected]> Signed-off-by: Ewan D. Milne <[email protected]> Reviewed-by: Laurence Oberman <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
1e793f6fc0
commit
4d2b496f19
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue