Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scsi: lpfc: Avoid another null dereference in lpfc_sli4_hba_unset()
Commit cdb42be ("scsi: lpfc: Replace io_channels for nvme and fcp with general hdw_queues per cpu") has introduced static checker warnings for potential null dereferences in 'lpfc_sli4_hba_unset()' and commit 1ffdd2c ("scsi: lpfc: resolve static checker warning in lpfc_sli4_hba_unset") has tried to fix it. However, yet another potential null dereference is remaining. This commit fixes it. This bug was discovered and resolved using Coverity Static Analysis Security Testing (SAST) by Synopsys, Inc. Link: https://lore.kernel.org/r/[email protected] Fixes: 1ffdd2c ("scsi: lpfc: resolve static checker warning inlpfc_sli4_hba_unset") Fixes: cdb42be ("scsi: lpfc: Replace io_channels for nvme and fcp with general hdw_queues per cpu") Reviewed-by: James Smart <[email protected]> Signed-off-by: SeongJae Park <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
- Loading branch information