Commit 92508d60 authored by J. Bruce Fields's avatar J. Bruce Fields Committed by Greg Kroah-Hartman

nfsd4: ignore WANT bits in open downgrade

commit c30e92df upstream.

We don't use WANT bits yet--and sending them can probably trigger a
BUG() further down.
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 549115ad
...@@ -3079,6 +3079,8 @@ nfsd4_open_downgrade(struct svc_rqst *rqstp, ...@@ -3079,6 +3079,8 @@ nfsd4_open_downgrade(struct svc_rqst *rqstp,
if (!access_valid(od->od_share_access, cstate->minorversion) if (!access_valid(od->od_share_access, cstate->minorversion)
|| !deny_valid(od->od_share_deny)) || !deny_valid(od->od_share_deny))
return nfserr_inval; return nfserr_inval;
/* We don't yet support WANT bits: */
od->od_share_access &= NFS4_SHARE_ACCESS_MASK;
nfs4_lock_state(); nfs4_lock_state();
if ((status = nfs4_preprocess_seqid_op(cstate, if ((status = nfs4_preprocess_seqid_op(cstate,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment