Skip to content

Commit

Permalink
net/9p: Handle the server returned error properly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aneesh Kumar K.V authored and Eric Van Hensbergen committed Aug 2, 2010
1 parent 7751bdb commit 69d4b44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/9p/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 69d4b44

Please sign in to comment.