dect
/
linux-2.6
Archived
13
0
Fork 0

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:
Aneesh Kumar K.V 2010-06-01 09:26:17 +00:00 committed by Eric Van Hensbergen
parent 7751bdb3a0
commit 69d4b4436b
1 changed files with 2 additions and 1 deletions

View File

@ -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))