diff options
-rw-r--r-- | fs/nfs/nfs4proc.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index baf968990475..6c40944cb83d 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -3416,16 +3416,11 @@ static int nfs4_lookup_root_sec(struct nfs_server *server, struct nfs_fh *fhandl | |||
3416 | .pseudoflavor = flavor, | 3416 | .pseudoflavor = flavor, |
3417 | }; | 3417 | }; |
3418 | struct rpc_auth *auth; | 3418 | struct rpc_auth *auth; |
3419 | int ret; | ||
3420 | 3419 | ||
3421 | auth = rpcauth_create(&auth_args, server->client); | 3420 | auth = rpcauth_create(&auth_args, server->client); |
3422 | if (IS_ERR(auth)) { | 3421 | if (IS_ERR(auth)) |
3423 | ret = -EACCES; | 3422 | return -EACCES; |
3424 | goto out; | 3423 | return nfs4_lookup_root(server, fhandle, info); |
3425 | } | ||
3426 | ret = nfs4_lookup_root(server, fhandle, info); | ||
3427 | out: | ||
3428 | return ret; | ||
3429 | } | 3424 | } |
3430 | 3425 | ||
3431 | /* | 3426 | /* |