Skip to content

Commit a1800ac

Browse files
Malahal Nainenitrondmypd
authored andcommitted
nfs: initialize the ACL support bits to zero.
Avoid returning incorrect acl mask attributes when the server doesn't support ACLs. Signed-off-by: Malahal Naineni <malahal@us.ibm.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
1 parent 905e7da commit a1800ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/nfs4xdr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3449,7 +3449,7 @@ static int decode_attr_aclsupport(struct xdr_stream *xdr, uint32_t *bitmap, uint
34493449
{
34503450
__be32 *p;
34513451

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

0 commit comments

Comments
 (0)