diff options
author | Weston Andros Adamson <dros@netapp.com> | 2012-11-01 16:21:53 +0100 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-11-01 16:50:53 +0100 |
commit | d24bab93e42b1f90d89c86b3edbb81ec34bb9474 (patch) | |
tree | 84a7243c6e64367bb29384e7ea480fe0e6dab2b9 /net/sunrpc | |
parent | NFS: add nfs_sb_deactive_async to avoid deadlock (diff) | |
download | linux-d24bab93e42b1f90d89c86b3edbb81ec34bb9474.tar.xz 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')
-rw-r--r-- | net/sunrpc/backchannel_rqst.c | 2 |
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); |