aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEwan D. Milne <emilne@redhat.com>2016-10-26 11:22:53 -0400
committerSasha Levin <alexander.levin@verizon.com>2016-11-25 22:57:03 -0500
commitd207c6603fc6be402f6e75181c9dae0bfd585e56 (patch)
tree03d0713f3936ba0266417d39706e66ff901a49c5
parent169eb57c9e8da65b3e963960feb1f16b13fecff9 (diff)
downloadlinux-linaro-stable-d207c6603fc6be402f6e75181c9dae0bfd585e56.tar.gz
scsi: scsi_debug: Fix memory leak if LBP enabled and module is unloaded
[ Upstream commit 4d2b496f19f3c2cfaca1e8fa0710688b5ff3811d ] map_storep was not being vfree()'d in the module_exit call. Cc: <stable@vger.kernel.org> 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: Sasha Levin <alexander.levin@verizon.com>
-rw-r--r--drivers/scsi/scsi_debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c
index 1f8e2dc9c616..c07d1cd28e91 100644
--- a/drivers/scsi/scsi_debug.c
+++ b/drivers/scsi/scsi_debug.c
@@ -4993,6 +4993,7 @@ static void __exit scsi_debug_exit(void)
if (dif_storep)
vfree(dif_storep);
+ vfree(map_storep);
vfree(fake_storep);
}