diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2007-02-16 10:28:34 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-16 17:14:01 +0100 |
commit | f34f924274ad8f84c6d86ea9e52b0682347f5701 (patch) | |
tree | 415bebb9cc9ca17f30bacc126d8e62fb0dc0d984 /fs/nfsd/vfs.c | |
parent | [PATCH] knfsd: nfsd4: fix memory leak on kmalloc failure in savemem (diff) | |
download | linux-f34f924274ad8f84c6d86ea9e52b0682347f5701.tar.xz linux-f34f924274ad8f84c6d86ea9e52b0682347f5701.zip |
[PATCH] knfsd: nfsd4: fix error return on unsupported acl
We should be returning ATTRNOTSUPP, not NOTSUPP, when acls are unsupported.
Also fix a comment.
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r-- | fs/nfsd/vfs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 8283236c6a0f..7e6aa245b5d5 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -466,7 +466,10 @@ out: posix_acl_release(dpacl); return (error); out_nfserr: - error = nfserrno(host_error); + if (host_error == -EOPNOTSUPP) + error = nfserr_attrnotsupp; + else + error = nfserrno(host_error); goto out; } |