summaryrefslogtreecommitdiffstats
path: root/fs/posix_acl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/posix_acl.c')
-rw-r--r--fs/posix_acl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/posix_acl.c b/fs/posix_acl.c
index 515d31511d0d..3a48bb789c9f 100644
--- a/fs/posix_acl.c
+++ b/fs/posix_acl.c
@@ -776,7 +776,7 @@ posix_acl_xattr_get(struct dentry *dentry, const char *name,
776 776
777 if (!IS_POSIXACL(dentry->d_inode)) 777 if (!IS_POSIXACL(dentry->d_inode))
778 return -EOPNOTSUPP; 778 return -EOPNOTSUPP;
779 if (S_ISLNK(dentry->d_inode->i_mode)) 779 if (d_is_symlink(dentry))
780 return -EOPNOTSUPP; 780 return -EOPNOTSUPP;
781 781
782 acl = get_acl(dentry->d_inode, type); 782 acl = get_acl(dentry->d_inode, type);
@@ -836,7 +836,7 @@ posix_acl_xattr_list(struct dentry *dentry, char *list, size_t list_size,
836 836
837 if (!IS_POSIXACL(dentry->d_inode)) 837 if (!IS_POSIXACL(dentry->d_inode))
838 return -EOPNOTSUPP; 838 return -EOPNOTSUPP;
839 if (S_ISLNK(dentry->d_inode->i_mode)) 839 if (d_is_symlink(dentry))
840 return -EOPNOTSUPP; 840 return -EOPNOTSUPP;
841 841
842 if (type == ACL_TYPE_ACCESS) 842 if (type == ACL_TYPE_ACCESS)