aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sd_dif.c
diff options
context:
space:
mode:
authorBill Kuzeja <William.Kuzeja@stratus.com>2019-08-14 10:24:41 -0400
committerMartin K. Petersen <martin.petersen@oracle.com>2019-08-14 21:50:51 -0400
commit26fa656e9a0cbccddf7db132ea020d2169dbe46e (patch)
tree99e68a8bc5a1e8f04536039b94b7b2799073c986 /drivers/scsi/sd_dif.c
parentscsi: lpfc: Fix crash when cpu count is 1 and null irq affinity mask (diff)
downloadlinux-dev-26fa656e9a0cbccddf7db132ea020d2169dbe46e.tar.xz
linux-dev-26fa656e9a0cbccddf7db132ea020d2169dbe46e.zip
scsi: qla2xxx: Fix gnl.l memory leak on adapter init failure
If HBA initialization fails unexpectedly (exiting via probe_failed:), we may fail to free vha->gnl.l. So that we don't attempt to double free, set this pointer to NULL after a free and check for NULL at probe_failed: so we know whether or not to call dma_free_coherent. Signed-off-by: Bill Kuzeja <william.kuzeja@stratus.com> Acked-by: Himanshu Madhani <hmadhani@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/sd_dif.c')
0 files changed, 0 insertions, 0 deletions