diff options
author | James Smart <jsmart2021@gmail.com> | 2019-03-12 16:30:17 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-03-19 13:15:08 -0400 |
commit | bbd3d7380bc67c27b31548e0a33fc5efc4e0fc3d (patch) | |
tree | 8ed8d76132088ad0a7b6050608cbce8c2e86911b /drivers/scsi/lpfc/lpfc_logmsg.h | |
parent | 2a0fb340fcc816975b8b0f2fef913d11999c39cf (diff) |
scsi: lpfc: Fix driver crash in target reset handler
It's possible for the scsi error handler to fire and call the target reset
handler simultaneously to the driver logging out and relogging into the
system. If hit just right, the re-login may not have fully re-established
the remote port and the rdata->pnod structure may be null.
Check for NULL in the reset handler and return failure if NULL.
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_logmsg.h')
0 files changed, 0 insertions, 0 deletions