mbox series

[0/2] scsi: Fix two possible memory leaks

Message ID 20241026125711.484-1-thunder.leizhen@huawei.com
Headers show
Series scsi: Fix two possible memory leaks | expand

Message

Leizhen (ThunderTown) Oct. 26, 2024, 12:57 p.m. UTC
When "ops->common->sb_init = qed_sb_init" fails, the DMA memory needs to be
explicitly released.

Zhen Lei (2):
  scsi: qedf: Fix a possible memory leak in qedf_alloc_and_init_sb()
  scsi: qedi: Fix a possible memory leak in qedi_alloc_and_init_sb()

 drivers/scsi/qedf/qedf_main.c | 1 +
 drivers/scsi/qedi/qedi_main.c | 1 +
 2 files changed, 2 insertions(+)

Comments

Martin K. Petersen Nov. 14, 2024, 2:50 a.m. UTC | #1
On Sat, 26 Oct 2024 20:57:09 +0800, Zhen Lei wrote:

> When "ops->common->sb_init = qed_sb_init" fails, the DMA memory needs to be
> explicitly released.
> 
> Zhen Lei (2):
>   scsi: qedf: Fix a possible memory leak in qedf_alloc_and_init_sb()
>   scsi: qedi: Fix a possible memory leak in qedi_alloc_and_init_sb()
> 
> [...]

Applied to 6.13/scsi-queue, thanks!

[1/2] scsi: qedf: Fix a possible memory leak in qedf_alloc_and_init_sb()
      https://git.kernel.org/mkp/scsi/c/c62c30429db3
[2/2] scsi: qedi: Fix a possible memory leak in qedi_alloc_and_init_sb()
      https://git.kernel.org/mkp/scsi/c/95bbdca4999b