summaryrefslogtreecommitdiffstats
path: root/net/9p
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2010-06-01 09:26:17 +0000
committerEric Van Hensbergen <ericvh@gmail.com>2010-08-02 14:25:08 -0500
commit69d4b4436b54c1a850d475697fda5ca117b09a5e (patch)
treee7f1ad979bacad89bd359938d1211caf27dbe8cf /net/9p
parent7751bdb3a095ad32dd4fcff3443cf8dd4cb1e748 (diff)
downloadlinux-69d4b4436b54c1a850d475697fda5ca117b09a5e.tar.gz
linux-69d4b4436b54c1a850d475697fda5ca117b09a5e.tar.bz2
linux-69d4b4436b54c1a850d475697fda5ca117b09a5e.zip
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>
Diffstat (limited to 'net/9p')
-rw-r--r--net/9p/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/9p/client.c b/net/9p/client.c
index a80357483a47..4ff068e98f76 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -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))