]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
net/9p: Handle the server returned error properly
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 1 Jun 2010 09:26:17 +0000 (09:26 +0000)
committerEric Van Hensbergen <ericvh@gmail.com>
Mon, 2 Aug 2010 19:25:08 +0000 (14:25 -0500)
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>
net/9p/client.c

index a80357483a479f49241f60b83fce1e84bc780846..4ff068e98f76901eb3cce7c059859f1c1cd00d30 100644 (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))