mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
scsi: qedi: Fix endpoint NULL panic during recovery.
Signed-off-by: Manish Rangankar <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
3d61a31322
commit
b19775e478
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Reference in a new issue