fix copy_tree() regression
[firefly-linux-kernel-4.4.55.git] / fs / xfs / xfs_acl.c
index 0ecec1896f25439f198c53c93bc058ff3bff9c89..6888ad886ff6205cc0baf0aa36352fa92f9d93ea 100644 (file)
@@ -281,7 +281,7 @@ xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type)
        if (!acl)
                goto set_acl;
 
-       error = -EINVAL;
+       error = -E2BIG;
        if (acl->a_count > XFS_ACL_MAX_ENTRIES(XFS_M(inode->i_sb)))
                return error;