Prechádzať zdrojové kódy

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>
Weston Andros Adamson 12 rokov pred
rodič
commit
d24bab93e4
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      net/sunrpc/backchannel_rqst.c

+ 1 - 1
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);