diff options
Diffstat (limited to 'net/sunrpc/svcauth.c')
-rw-r--r-- | net/sunrpc/svcauth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/svcauth.c b/net/sunrpc/svcauth.c index e64109b02aee..4e9393c24687 100644 --- a/net/sunrpc/svcauth.c +++ b/net/sunrpc/svcauth.c | |||
@@ -46,8 +46,8 @@ svc_authenticate(struct svc_rqst *rqstp, __be32 *authp) | |||
46 | dprintk("svc: svc_authenticate (%d)\n", flavor); | 46 | dprintk("svc: svc_authenticate (%d)\n", flavor); |
47 | 47 | ||
48 | spin_lock(&authtab_lock); | 48 | spin_lock(&authtab_lock); |
49 | if (flavor >= RPC_AUTH_MAXFLAVOR || !(aops = authtab[flavor]) | 49 | if (flavor >= RPC_AUTH_MAXFLAVOR || !(aops = authtab[flavor]) || |
50 | || !try_module_get(aops->owner)) { | 50 | !try_module_get(aops->owner)) { |
51 | spin_unlock(&authtab_lock); | 51 | spin_unlock(&authtab_lock); |
52 | *authp = rpc_autherr_badcred; | 52 | *authp = rpc_autherr_badcred; |
53 | return SVC_DENIED; | 53 | return SVC_DENIED; |