mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
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>
This commit is contained in:
parent
905e7dafbe
commit
a1800acaf7
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user