aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authormanish.rangankar@cavium.com <manish.rangankar@cavium.com>2017-05-19 04:33:21 -0400
committerMartin K. Petersen <martin.petersen@oracle.com>2017-05-23 22:16:43 -0400
commitb19775e4785996503b106e59d9d3a8839e677afd (patch)
tree0ccb182866133f5b2ac902e3b301d4ace21cf1cc /drivers
parent3d61a3132212d6b1c8c6914700d5f6456712ac08 (diff)
scsi: qedi: Fix endpoint NULL panic during recovery.
Signed-off-by: Manish Rangankar <manish.rangankar@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/qedi/qedi_fw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/qedi/qedi_fw.c b/drivers/scsi/qedi/qedi_fw.c
index d6978cbc56f0..8bc7ee1a8ca8 100644
--- a/drivers/scsi/qedi/qedi_fw.c
+++ b/drivers/scsi/qedi/qedi_fw.c
@@ -1494,6 +1494,8 @@ static int qedi_send_iscsi_tmf(struct qedi_conn *qedi_conn,
1494 tmf_hdr = (struct iscsi_tm *)mtask->hdr; 1494 tmf_hdr = (struct iscsi_tm *)mtask->hdr;
1495 qedi_cmd = (struct qedi_cmd *)mtask->dd_data; 1495 qedi_cmd = (struct qedi_cmd *)mtask->dd_data;
1496 ep = qedi_conn->ep; 1496 ep = qedi_conn->ep;
1497 if (!ep)
1498 return -ENODEV;
1497 1499
1498 tid = qedi_get_task_idx(qedi); 1500 tid = qedi_get_task_idx(qedi);
1499 if (tid == -1) 1501 if (tid == -1)