nfsd4: typo logical vs bitwise negate for want_mask
authorBenny Halevy <bhalevy@tonian.com>
Thu, 20 Oct 2011 02:13:29 +0000 (19:13 -0700)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 24 Oct 2011 08:24:29 +0000 (04:24 -0400)
Signed-off-by: Benny Halevy <bhalevy@tonian.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c

index 706ada1..decea14 100644 (file)
@@ -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) {