Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1800aca authored by Malahal Naineni's avatar Malahal Naineni Committed by Trond Myklebust
Browse files

nfs: initialize the ACL support bits to zero.



Avoid returning incorrect acl mask attributes when the server doesn't
support ACLs.

Signed-off-by: default avatarMalahal Naineni <malahal@us.ibm.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 905e7daf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3449,7 +3449,7 @@ static int decode_attr_aclsupport(struct xdr_stream *xdr, uint32_t *bitmap, uint
{
	__be32 *p;

	*res = ACL4_SUPPORT_ALLOW_ACL|ACL4_SUPPORT_DENY_ACL;
	*res = 0;
	if (unlikely(bitmap[0] & (FATTR4_WORD0_ACLSUPPORT - 1U)))
		return -EIO;
	if (likely(bitmap[0] & FATTR4_WORD0_ACLSUPPORT)) {