diff options
Diffstat (limited to 'fs/nfsd/auth.c')
| -rw-r--r-- | fs/nfsd/auth.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nfsd/auth.c b/fs/nfsd/auth.c index 06cddd572264..2645be435e75 100644 --- a/fs/nfsd/auth.c +++ b/fs/nfsd/auth.c | |||
| @@ -71,10 +71,8 @@ int nfsd_setuser(struct svc_rqst *rqstp, struct svc_export *exp) | |||
| 71 | if (gid_eq(new->fsgid, INVALID_GID)) | 71 | if (gid_eq(new->fsgid, INVALID_GID)) |
| 72 | new->fsgid = exp->ex_anon_gid; | 72 | new->fsgid = exp->ex_anon_gid; |
| 73 | 73 | ||
| 74 | ret = set_groups(new, gi); | 74 | set_groups(new, gi); |
| 75 | put_group_info(gi); | 75 | put_group_info(gi); |
| 76 | if (ret < 0) | ||
| 77 | goto error; | ||
| 78 | 76 | ||
| 79 | if (!uid_eq(new->fsuid, GLOBAL_ROOT_UID)) | 77 | if (!uid_eq(new->fsuid, GLOBAL_ROOT_UID)) |
| 80 | new->cap_effective = cap_drop_nfsd_set(new->cap_effective); | 78 | new->cap_effective = cap_drop_nfsd_set(new->cap_effective); |
| @@ -89,7 +87,6 @@ int nfsd_setuser(struct svc_rqst *rqstp, struct svc_export *exp) | |||
| 89 | 87 | ||
| 90 | oom: | 88 | oom: |
| 91 | ret = -ENOMEM; | 89 | ret = -ENOMEM; |
| 92 | error: | ||
| 93 | abort_creds(new); | 90 | abort_creds(new); |
| 94 | return ret; | 91 | return ret; |
| 95 | } | 92 | } |
