commit | 8f34a430ac16d5fbd9d6b383184d35e152f5a963 | [log] [tgz] |
---|---|---|
author | J. Bruce Fields <bfields@redhat.com> | Thu Sep 02 15:23:16 2010 -0400 |
committer | J. Bruce Fields <bfields@redhat.com> | Thu Sep 02 15:25:09 2010 -0400 |
tree | 34a2cbdacb782fb63a0096c28a1e8ab9d8770153 | |
parent | f6360efb83cd6dd1476cd758834c8277508c1f15 [diff] |
nfsd4: mask out non-access bits in nfs4_access_to_omode This fixes an unnecessary BUG(). Signed-off-by: J. Bruce Fields <bfields@redhat.com>
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 3dfef06..cf0d2ff 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c
@@ -440,7 +440,7 @@ static int nfs4_access_to_omode(u32 access) { - switch (access) { + switch (access & NFS4_SHARE_ACCESS_BOTH) { case NFS4_SHARE_ACCESS_READ: return O_RDONLY; case NFS4_SHARE_ACCESS_WRITE: