aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_scsi.c
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2014-09-03 12:58:16 -0400
committerChristoph Hellwig <hch@lst.de>2014-09-16 12:10:13 -0400
commit8c50d25c0edd8ec05a7e069c23f6ac2e50c898b1 (patch)
tree55ad0815ae4a846ec32776ef69057be742f0a408 /drivers/scsi/lpfc/lpfc_scsi.c
parenteb01656688edd686a80c89281043fe6f2b2af6ff (diff)
lpfc: fix for handling unmapped ndlp in target reset handler
Fix for handling unmapped ndlp in target reset handler Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: Dick Kennedy <dick.kennedy@emulex.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_scsi.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_scsi.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
index 0f6be8560508..b99399fe2548 100644
--- a/drivers/scsi/lpfc/lpfc_scsi.c
+++ b/drivers/scsi/lpfc/lpfc_scsi.c
@@ -5339,7 +5339,13 @@ lpfc_target_reset_handler(struct scsi_cmnd *cmnd)
5339 if (status == FAILED) { 5339 if (status == FAILED) {
5340 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP, 5340 lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
5341 "0722 Target Reset rport failure: rdata x%p\n", rdata); 5341 "0722 Target Reset rport failure: rdata x%p\n", rdata);
5342 return FAILED; 5342 spin_lock_irq(shost->host_lock);
5343 pnode->nlp_flag &= ~NLP_NPR_ADISC;
5344 pnode->nlp_fcp_info &= ~NLP_FCP_2_DEVICE;
5345 spin_unlock_irq(shost->host_lock);
5346 lpfc_reset_flush_io_context(vport, tgt_id, lun_id,
5347 LPFC_CTX_TGT);
5348 return FAST_IO_FAIL;
5343 } 5349 }
5344 5350
5345 scsi_event.event_type = FC_REG_SCSI_EVENT; 5351 scsi_event.event_type = FC_REG_SCSI_EVENT;