summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@tonian.com>2011-10-19 19:13:29 -0700
committerJ. Bruce Fields <bfields@redhat.com>2011-10-24 04:24:29 -0400
commit92bac8c5d60623167c6802b1f125e6d623708185 (patch)
tree63d91f06ad66ea362e588dbf29aed6ba075fa992 /fs/nfsd
parentc668fc6dfcce98f8222ce1c997f4e5c4ac63f3d0 (diff)
downloadlinux-stable-92bac8c5d60623167c6802b1f125e6d623708185.tar.gz
linux-stable-92bac8c5d60623167c6802b1f125e6d623708185.tar.bz2
linux-stable-92bac8c5d60623167c6802b1f125e6d623708185.zip
nfsd4: typo logical vs bitwise negate for want_mask
Signed-off-by: Benny Halevy <bhalevy@tonian.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4xdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 706ada1956c1..decea140b323 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -671,7 +671,7 @@ static __be32 nfsd4_decode_share_access(struct nfsd4_compoundargs *argp, u32 *x)
default:
return nfserr_bad_xdr;
}
- w &= !NFS4_SHARE_WANT_MASK;
+ w &= ~NFS4_SHARE_WANT_MASK;
if (!w)
return nfs_ok;
switch (w) {