mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-14 00:57:32 +07:00
net/9p: Handle the server returned error properly
We need to get the negative errno value in the kernel even for dotl. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
This commit is contained in:
parent
7751bdb3a0
commit
69d4b4436b
@ -460,7 +460,8 @@ static int p9_check_errors(struct p9_client *c, struct p9_req_t *req)
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p9_is_proto_dotu(c))
|
if (p9_is_proto_dotu(c) ||
|
||||||
|
p9_is_proto_dotl(c))
|
||||||
err = -ecode;
|
err = -ecode;
|
||||||
|
|
||||||
if (!err || !IS_ERR_VALUE(err))
|
if (!err || !IS_ERR_VALUE(err))
|
||||||
|
Loading…
Reference in New Issue
Block a user