diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2010-06-01 11:26:17 +0200 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2010-08-02 21:25:08 +0200 |
commit | 69d4b4436b54c1a850d475697fda5ca117b09a5e (patch) | |
tree | e7f1ad979bacad89bd359938d1211caf27dbe8cf /net | |
parent | 9p: readdir implementation for 9p2000.L (diff) | |
download | linux-69d4b4436b54c1a850d475697fda5ca117b09a5e.tar.xz 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 '')
-rw-r--r-- | net/9p/client.c | 3 |
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)) |