summaryrefslogtreecommitdiffstats
path: root/net/9p/client.c
diff options
context:
space:
mode:
authorM. Mohan Kumar <mohan@in.ibm.com>2011-04-15 13:59:33 +0530
committerEric Van Hensbergen <ericvh@strongbad.austin.rr.com>2011-05-09 22:51:12 -0500
commit3cd7967825a2b3926dc96ae566d986c4420919f7 (patch)
treefa8e4421ff3fada4da92bb8015ea3a5ce73a0e53 /net/9p/client.c
parent26822eebb25500fb0776c7c256a6af041e9f538b (diff)
downloadop-kernel-dev-3cd7967825a2b3926dc96ae566d986c4420919f7.zip
op-kernel-dev-3cd7967825a2b3926dc96ae566d986c4420919f7.tar.gz
net/9p: Handle get_user_pages_fast return properly
Use proper data type to handle get_user_pages_fast error condition. Also do not treat EFAULT error as fatal. Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com> Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'net/9p/client.c')
-rw-r--r--net/9p/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/9p/client.c b/net/9p/client.c
index 7736774..a9aa2dd 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -614,7 +614,7 @@ p9_client_rpc(struct p9_client *c, int8_t type, const char *fmt, ...)
err = c->trans_mod->request(c, req);
if (err < 0) {
- if (err != -ERESTARTSYS)
+ if (err != -ERESTARTSYS && err != -EFAULT)
c->status = Disconnected;
goto reterr;
}
OpenPOWER on IntegriCloud