summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/backchannel_rqst.c
diff options
context:
space:
mode:
authorWeston Andros Adamson2012-11-01 16:21:53 +0100
committerTrond Myklebust2012-11-01 16:50:53 +0100
commitd24bab93e42b1f90d89c86b3edbb81ec34bb9474 (patch)
tree84a7243c6e64367bb29384e7ea480fe0e6dab2b9 /net/sunrpc/backchannel_rqst.c
parentNFS: add nfs_sb_deactive_async to avoid deadlock (diff)
downloadkernel-qcow2-linux-d24bab93e42b1f90d89c86b3edbb81ec34bb9474.tar.gz
kernel-qcow2-linux-d24bab93e42b1f90d89c86b3edbb81ec34bb9474.tar.xz
kernel-qcow2-linux-d24bab93e42b1f90d89c86b3edbb81ec34bb9474.zip
SUNRPC: return proper errno from backchannel_rqst
The one and only caller (in fs/nfs/nfs4client.c) uses the result as an errno and would have interpreted an error as EPERM. Signed-off-by: Weston Andros Adamson <dros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/backchannel_rqst.c')
-rw-r--r--net/sunrpc/backchannel_rqst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/backchannel_rqst.c b/net/sunrpc/backchannel_rqst.c
index 5a3d675d2f2f..a9c0bbccad6b 100644
--- a/net/sunrpc/backchannel_rqst.c
+++ b/net/sunrpc/backchannel_rqst.c
@@ -172,7 +172,7 @@ out_free:
xprt_free_allocation(req);
dprintk("RPC: setup backchannel transport failed\n");
- return -1;
+ return -ENOMEM;
}
EXPORT_SYMBOL_GPL(xprt_setup_backchannel);