|
|
@@ -311,7 +311,7 @@ fcloop_tgt_lsrqst_done_work(struct work_struct *work)
|
|
|
struct fcloop_tport *tport = tls_req->tport;
|
|
|
struct nvmefc_ls_req *lsreq = tls_req->lsreq;
|
|
|
|
|
|
- if (tport->remoteport)
|
|
|
+ if (!tport || tport->remoteport)
|
|
|
lsreq->done(lsreq, tls_req->status);
|
|
|
}
|
|
|
|
|
|
@@ -329,6 +329,7 @@ fcloop_ls_req(struct nvme_fc_local_port *localport,
|
|
|
|
|
|
if (!rport->targetport) {
|
|
|
tls_req->status = -ECONNREFUSED;
|
|
|
+ tls_req->tport = NULL;
|
|
|
schedule_work(&tls_req->work);
|
|
|
return ret;
|
|
|
}
|