]> git.itanic.dy.fi Git - linux-stable/commit
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:36:35 +0000 (16:36 +0100)
commit69ee0ed0c6f96eb7182b2dd83393e6fca5ade81c
treead34d73d778c428caaff6135abb3425f48f0baef
parent9075faf1406cdbd2a7b6ce8c32b3899109ecdf63
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