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)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:14:48 +0000 (13:14 +0000)
commitcaa0bb68f469db866003c91bf3ae2c527f54038e
treef5876e2fa5160a6a67aac58440e60c6bbd890d39
parent0a666f7fdef1a3867b3a495476ddd860383a3dcf
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: Willy Tarreau <w@1wt.eu>
drivers/scsi/scsi_debug.c