summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/system/posix-acl/src/posix-acl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/system/posix-acl/src/posix-acl.c b/xlators/system/posix-acl/src/posix-acl.c
index f4527c3b0c8..2edaa408135 100644
--- a/xlators/system/posix-acl/src/posix-acl.c
+++ b/xlators/system/posix-acl/src/posix-acl.c
@@ -1947,10 +1947,12 @@ handling_other_acl_related_xattr (xlator_t *this, inode_t *inode, dict_t *xattr)
data_t *data = NULL;
int ret = 0;
+ if (!this || !xattr || !inode)
+ goto out;
+
data = dict_get (xattr, POSIX_ACL_ACCESS_XATTR);
if (data) {
-
acl = posix_acl_from_xattr (this, data->data, data->len);
if (!acl) {
ret = -1;