diff options
author | Malahal Naineni <malahal@us.ibm.com> | 2014-01-27 16:31:09 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-01-31 08:28:16 -0500 |
commit | a1800acaf7d1c2bf6d68b9a8f4ab8560cc66555a (patch) | |
tree | 2d3a7a6f6f32d638a45cc8fd13b974f6f8e1129c /fs | |
parent | 905e7dafbe1c69dd69197a9e8ba2e4bf518c9926 (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/nfs4xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index 8c21d69a9dc1..72f3bf1754ef 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c | |||
@@ -3449,7 +3449,7 @@ static int decode_attr_aclsupport(struct xdr_stream *xdr, uint32_t *bitmap, uint | |||
3449 | { | 3449 | { |
3450 | __be32 *p; | 3450 | __be32 *p; |
3451 | 3451 | ||
3452 | *res = ACL4_SUPPORT_ALLOW_ACL|ACL4_SUPPORT_DENY_ACL; | 3452 | *res = 0; |
3453 | if (unlikely(bitmap[0] & (FATTR4_WORD0_ACLSUPPORT - 1U))) | 3453 | if (unlikely(bitmap[0] & (FATTR4_WORD0_ACLSUPPORT - 1U))) |
3454 | return -EIO; | 3454 | return -EIO; |
3455 | if (likely(bitmap[0] & FATTR4_WORD0_ACLSUPPORT)) { | 3455 | if (likely(bitmap[0] & FATTR4_WORD0_ACLSUPPORT)) { |