diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-13 23:14:47 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-13 23:14:47 +0100 |
commit | 0001ec9b1418f01a6dd44a83a1caa4b4f3d11f29 (patch) | |
tree | 8466054cca03144c36e683a4ebe05039a5c86a37 | |
parent | Merge branch 'for-5.11-fixes' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff) | |
parent | scsi: scsi_debug: Fix a memory leak (diff) | |
download | linux-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.c | 1 |
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); |