Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6670232b authored by Dave Chinner's avatar Dave Chinner Committed by Dave Chinner
Browse files

xfs: fix wrong err sign on xfs_set_acl()

parent a5a14de2
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -173,12 +173,12 @@ xfs_generic_create(


#ifdef CONFIG_XFS_POSIX_ACL
#ifdef CONFIG_XFS_POSIX_ACL
	if (default_acl) {
	if (default_acl) {
		error = xfs_set_acl(inode, default_acl, ACL_TYPE_DEFAULT);
		error = -xfs_set_acl(inode, default_acl, ACL_TYPE_DEFAULT);
		if (error)
		if (error)
			goto out_cleanup_inode;
			goto out_cleanup_inode;
	}
	}
	if (acl) {
	if (acl) {
		error = xfs_set_acl(inode, acl, ACL_TYPE_ACCESS);
		error = -xfs_set_acl(inode, acl, ACL_TYPE_ACCESS);
		if (error)
		if (error)
			goto out_cleanup_inode;
			goto out_cleanup_inode;
	}
	}