]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/nfsd/auth.c
nfsd: fix cred leak on every rpc
[linux-2.6-omap-h63xx.git] / fs / nfsd / auth.c
index b860d3484cd75157c8a652e23047f79fb18f8ba9..5573508f707fa5cd652da4503049fa6e89c0f9f8 100644 (file)
@@ -87,6 +87,7 @@ int nfsd_setuser(struct svc_rqst *rqstp, struct svc_export *exp)
                new->cap_effective = cap_raise_nfsd_set(new->cap_effective,
                                                        new->cap_permitted);
        put_cred(override_creds(new));
+       put_cred(new);
        return 0;
 
 oom: