diff options
author | Bill Kuzeja <William.Kuzeja@stratus.com> | 2019-08-14 10:24:41 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-08-14 21:50:51 -0400 |
commit | 26fa656e9a0cbccddf7db132ea020d2169dbe46e (patch) | |
tree | 99e68a8bc5a1e8f04536039b94b7b2799073c986 /drivers/scsi/3w-9xxx.h | |
parent | scsi: lpfc: Fix crash when cpu count is 1 and null irq affinity mask (diff) | |
download | linux-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/3w-9xxx.h')
0 files changed, 0 insertions, 0 deletions