[PATCH] RPC: [PATCH] improve rpcauthauth_create error returns
Currently we return -ENOMEM for every single failure to create a new auth. This is actually accurate for auth_null and auth_unix, but for auth_gss it's a bit confusing. Allow rpcauth_create (and the ->create methods) to return errors. With this patch, the user may sometimes see an EINVAL instead. Whee. Signed-off-by:J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by:
Trond Myklebust <Trond.Myklebust@netapp.com>
Showing
- fs/nfs/inode.c 17 additions, 10 deletionsfs/nfs/inode.c
- fs/nfs/nfs4state.c 2 additions, 1 deletionfs/nfs/nfs4state.c
- net/sunrpc/auth.c 3 additions, 3 deletionsnet/sunrpc/auth.c
- net/sunrpc/auth_gss/auth_gss.c 9 additions, 4 deletionsnet/sunrpc/auth_gss/auth_gss.c
- net/sunrpc/clnt.c 4 additions, 2 deletionsnet/sunrpc/clnt.c
Loading
Please register or sign in to comment