]> git.hungrycats.org Git - linux/commitdiff
[PATCH] nfsd4: fix putrootfh return
authorNeil Brown <neilb@cse.unsw.edu.au>
Wed, 20 Oct 2004 01:27:34 +0000 (18:27 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 20 Oct 2004 01:27:34 +0000 (18:27 -0700)
Thanks to Al Viro for noticing that putrootfh could return either a linux or
an nfs error.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/nfs4proc.c

index 3682df02b546437553d2238bf10b55f207d74132..ff6240f305c74e584f13667f00796e69861b860a 100644 (file)
@@ -267,7 +267,7 @@ nfsd4_putrootfh(struct svc_rqst *rqstp, struct svc_fh *current_fh)
        status = exp_pseudoroot(rqstp->rq_client, current_fh,
                              &rqstp->rq_chandle);
        if (!status)
-               status = nfsd_setuser(rqstp, current_fh->fh_export);
+               status = nfserrno(nfsd_setuser(rqstp, current_fh->fh_export));
        return status;
 }