Commit b19775e4 authored by manish.rangankar@cavium.com's avatar manish.rangankar@cavium.com Committed by Martin K. Petersen

scsi: qedi: Fix endpoint NULL panic during recovery.

Signed-off-by: default avatarManish Rangankar <manish.rangankar@cavium.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 3d61a313
...@@ -1494,6 +1494,8 @@ static int qedi_send_iscsi_tmf(struct qedi_conn *qedi_conn, ...@@ -1494,6 +1494,8 @@ static int qedi_send_iscsi_tmf(struct qedi_conn *qedi_conn,
tmf_hdr = (struct iscsi_tm *)mtask->hdr; tmf_hdr = (struct iscsi_tm *)mtask->hdr;
qedi_cmd = (struct qedi_cmd *)mtask->dd_data; qedi_cmd = (struct qedi_cmd *)mtask->dd_data;
ep = qedi_conn->ep; ep = qedi_conn->ep;
if (!ep)
return -ENODEV;
tid = qedi_get_task_idx(qedi); tid = qedi_get_task_idx(qedi);
if (tid == -1) if (tid == -1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment