aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-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 2cab33cc3238..645a0a9d8073 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -690,7 +690,7 @@ static __be32 nfsd4_decode_share_deny(struct nfsd4_compoundargs *argp, u32 *x)
690 READ_BUF(4); 690 READ_BUF(4);
691 READ32(*x); 691 READ32(*x);
692 /* Note: unlinke access bits, deny bits may be zero. */ 692 /* Note: unlinke access bits, deny bits may be zero. */
693 if (*x & !NFS4_SHARE_DENY_BOTH) 693 if (*x & ~NFS4_SHARE_DENY_BOTH)
694 return nfserr_bad_xdr; 694 return nfserr_bad_xdr;
695 return nfs_ok; 695 return nfs_ok;
696xdr_error: 696xdr_error: