diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c index a7973bd56a40..e70e843ee48f 100644 --- a/net/9p/trans_fd.c +++ b/net/9p/trans_fd.c @@ -210,9 +210,11 @@ static void p9_conn_cancel(struct p9_conn *m, int err) list_for_each_entry_safe(req, rtmp, &m->req_list, req_list) { list_move(&req->req_list, &cancel_list); + req->status = REQ_STATUS_ERROR; } list_for_each_entry_safe(req, rtmp, &m->unsent_req_list, req_list) { list_move(&req->req_list, &cancel_list); + req->status = REQ_STATUS_ERROR; } spin_unlock(&m->client->lock);