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

index 706ada1956c17c31895e3da9dae4ac0a52ef1a8c..decea140b3239d55323c33774e85b535c668f4f1 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) {