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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 23 Feb 2017 03:50:55 +0000 (03:50 +0000)
commit2171f0dc7707bcccd61c254dd60fc2aaa0b487bc
tree44f30680038a68f4819450af822bc6efc447a509
parentb9b469ede23f215cb34a825a9c55d8b55dfc0a3f
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>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/scsi/scsi_debug.c