Skip to content

Commit

Permalink
SUNRPC: return proper errno from backchannel_rqst
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
  • Loading branch information
westonandrosadamson authored and Trond Myklebust committed Nov 1, 2012
1 parent 324d003 commit d24bab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sunrpc/backchannel_rqst.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ int xprt_setup_backchannel(struct rpc_xprt *xprt, unsigned int min_reqs)
xprt_free_allocation(req);

dprintk("RPC: setup backchannel transport failed\n");
return -1;
return -ENOMEM;
}
EXPORT_SYMBOL_GPL(xprt_setup_backchannel);

Expand Down

0 comments on commit d24bab9

Please sign in to comment.