mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
nfsd4: ignore WANT bits in open downgrade
We don't use WANT bits yet--and sending them can probably trigger a BUG() further down. Cc: stable@kernel.org Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
dcbf8c3034
commit
c30e92df30
1 changed files with 2 additions and 0 deletions
|
@ -3574,6 +3574,8 @@ nfsd4_open_downgrade(struct svc_rqst *rqstp,
|
|||
if (!access_valid(od->od_share_access, cstate->minorversion)
|
||||
|| !deny_valid(od->od_share_deny))
|
||||
return nfserr_inval;
|
||||
/* We don't yet support WANT bits: */
|
||||
od->od_share_access &= NFS4_SHARE_ACCESS_MASK;
|
||||
|
||||
nfs4_lock_state();
|
||||
status = nfs4_preprocess_confirmed_seqid_op(cstate, od->od_seqid,
|
||||
|
|
Loading…
Reference in a new issue