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>
This commit is contained in:
parent
3d61a31322
commit
b19775e478
@ -1494,6 +1494,8 @@ static int qedi_send_iscsi_tmf(struct qedi_conn *qedi_conn,
|
||||
tmf_hdr = (struct iscsi_tm *)mtask->hdr;
|
||||
qedi_cmd = (struct qedi_cmd *)mtask->dd_data;
|
||||
ep = qedi_conn->ep;
|
||||
if (!ep)
|
||||
return -ENODEV;
|
||||
|
||||
tid = qedi_get_task_idx(qedi);
|
||||
if (tid == -1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user