scsi: scsi_debug: Fix memory leak if LBP enabled and module is unloaded
authorEwan D. Milne <emilne@redhat.com>
Wed, 26 Oct 2016 15:22:53 +0000 (11:22 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 15:38:53 +0000 (16:38 +0100)
commit2a1a0a6f1d60d3cfc5a30783927794c168b8c0fd
tree5a47772341d9a2b7ad205c1b06ac4ed864848488
parent5bac49422b4a73bbc2733ba504b32bac76808bfb
scsi: scsi_debug: Fix memory leak if LBP enabled and module is unloaded

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/scsi_debug.c