Commit 69d4b443 authored by Aneesh Kumar K.V's avatar Aneesh Kumar K.V Committed by Eric Van Hensbergen

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: default avatarAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
parent 7751bdb3
......@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment