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
1 changed files with 2 additions and 1 deletions
|
@ -460,7 +460,8 @@ static int p9_check_errors(struct p9_client *c, struct p9_req_t *req)
|
|||
return err;
|
||||
}
|
||||
|
||||
if (p9_is_proto_dotu(c))
|
||||
if (p9_is_proto_dotu(c) ||
|
||||
p9_is_proto_dotl(c))
|
||||
err = -ecode;
|
||||
|
||||
if (!err || !IS_ERR_VALUE(err))
|
||||
|
|
Loading…
Reference in a new issue