projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
905e7da
)
nfs: initialize the ACL support bits to zero.
author
Malahal Naineni
<malahal@us.ibm.com>
Mon, 27 Jan 2014 21:31:09 +0000
(15:31 -0600)
committer
Trond Myklebust
<trond.myklebust@primarydata.com>
Fri, 31 Jan 2014 13:28:16 +0000
(08:28 -0500)
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>
fs/nfs/nfs4xdr.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/nfs4xdr.c
b/fs/nfs/nfs4xdr.c
index 8c21d69a9dc114c8781dc8ae3171f17f67fb4a8d..72f3bf1754ef770c3c7b2f1346225e1440ec968b 100644
(file)
--- 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
{
__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)) {