Commit 24b0f47f authored by Ewan D. Milne's avatar Ewan D. Milne Committed by Luis Henriques

scsi: scsi_debug: Fix memory leak if LBP enabled and module is unloaded

BugLink: http://bugs.launchpad.net/bugs/1642572

commit 4d2b496f upstream.

map_storep was not being vfree()'d in the module_exit call.
Signed-off-by: default avatarEwan D. Milne <emilne@redhat.com>
Reviewed-by: default avatarLaurence Oberman <loberman@redhat.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent 37cdfb9c
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment