summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-02-13 23:14:47 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2021-02-13 23:14:47 +0100
commit0001ec9b1418f01a6dd44a83a1caa4b4f3d11f29 (patch)
tree8466054cca03144c36e683a4ebe05039a5c86a37
parentMerge branch 'for-5.11-fixes' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff)
parentscsi: scsi_debug: Fix a memory leak (diff)
downloadlinux-0001ec9b1418f01a6dd44a83a1caa4b4f3d11f29.tar.xz
linux-0001ec9b1418f01a6dd44a83a1caa4b4f3d11f29.zip
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI fix from James Bottomley: "One fix for scsi_debug that fixes a memory leak on module removal" * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: scsi: scsi_debug: Fix a memory leak
-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 4a08c450b756..b6540b92f566 100644
--- a/drivers/scsi/scsi_debug.c
+++ b/drivers/scsi/scsi_debug.c
@@ -6881,6 +6881,7 @@ static void __exit scsi_debug_exit(void)
sdebug_erase_all_stores(false);
xa_destroy(per_store_ap);
+ kfree(sdebug_q_arr);
}
device_initcall(scsi_debug_init);