diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2004-10-19 18:27:34 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-10-19 18:27:34 -0700 |
| commit | 71dd672ecf246c2683c3094fd7a80d023c39fc0c (patch) | |
| tree | 99ce92dd59cb4e934c5983071b6abff3aaae9ff8 | |
| parent | 2e542a759f2e7baaeb296e75fc1b3b06766a892b (diff) | |
[PATCH] nfsd4: fix putrootfh return
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>
| -rw-r--r-- | fs/nfsd/nfs4proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index 3682df02b546..ff6240f305c7 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -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; } |
