]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/nfsd/nfs4xdr.c
nfsd4: typo logical vs bitwise negate for want_mask
[karo-tx-linux.git] / 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) {