Commit d24bab93e42b1f90d89c86b3edbb81ec34bb9474

Authored by Weston Andros Adamson
Committed by Trond Myklebust
1 parent 324d003b0c

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

net/sunrpc/backchannel_rqst.c
... ... @@ -172,7 +172,7 @@
172 172 xprt_free_allocation(req);
173 173  
174 174 dprintk("RPC: setup backchannel transport failed\n");
175   - return -1;
  175 + return -ENOMEM;
176 176 }
177 177 EXPORT_SYMBOL_GPL(xprt_setup_backchannel);
178 178