diff options
author | James Smart <jsmart2021@gmail.com> | 2021-03-01 20:18:05 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-03-05 01:37:04 +0300 |
commit | 6b6eaf8a5330a4ab37a0d562f24228226e6ac630 (patch) | |
tree | f0f58e9a175348251e30e16629a5406f67a22007 /drivers/scsi/lpfc/lpfc_nportdisc.c | |
parent | 618e2ee146d414481c39af61fb018f50bee4ad33 (diff) | |
download | linux-6b6eaf8a5330a4ab37a0d562f24228226e6ac630.tar.xz |
scsi: lpfc: Fix lpfc_els_retry() possible null pointer dereference
Driver crashed in lpfc_debugfs_disc_trc() due to null ndlp pointer. In
some calling cases, the ndlp is null and the did is looked up.
Fix by using the local did variable that is set appropriately based on ndlp
value.
Link: https://lore.kernel.org/r/20210301171821.3427-7-jsmart2021@gmail.com
Co-developed-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_nportdisc.c')
0 files changed, 0 insertions, 0 deletions