summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-12-08 21:40:38 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2023-12-08 21:40:38 +0100
commitf2e8a57ee9036c7d5443382b6c3c09b51a92ec7e (patch)
treeb334c26a88b958f39c0392f8cb9e39271299ab97 /drivers
parentMerge tag 'block-6.7-2023-12-08' of git://git.kernel.dk/linux (diff)
parentscsi: be2iscsi: Fix a memleak in beiscsi_init_wrb_handle() (diff)
downloadlinux-f2e8a57ee9036c7d5443382b6c3c09b51a92ec7e.tar.xz
linux-f2e8a57ee9036c7d5443382b6c3c09b51a92ec7e.zip
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI fix from James Bottomley: "One tiny fix to the be2iscsi driver fixing a memory leak in an error leg" * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: scsi: be2iscsi: Fix a memleak in beiscsi_init_wrb_handle()
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/be2iscsi/be_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
index e48f14ad6dfd..06acb5ff609e 100644
--- a/drivers/scsi/be2iscsi/be_main.c
+++ b/drivers/scsi/be2iscsi/be_main.c
@@ -2710,6 +2710,7 @@ init_wrb_hndl_failed:
kfree(pwrb_context->pwrb_handle_base);
kfree(pwrb_context->pwrb_handle_basestd);
}
+ kfree(phwi_ctxt->be_wrbq);
return -ENOMEM;
}