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

Commit a5a14de2 authored by Dave Chinner's avatar Dave Chinner Committed by Dave Chinner
Browse files

xfs: fix wrong errno from xfs_initxattrs

parent 65149e3f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ xfs_initxattrs(
	int			error = 0;

	for (xattr = xattr_array; xattr->name != NULL; xattr++) {
		error = xfs_attr_set(ip, xattr->name, xattr->value,
		error = -xfs_attr_set(ip, xattr->name, xattr->value,
				      xattr->value_len, ATTR_SECURE);
		if (error < 0)
			break;
@@ -93,7 +93,7 @@ xfs_init_security(
	struct inode	*dir,
	const struct qstr *qstr)
{
	return security_inode_init_security(inode, dir, qstr,
	return -security_inode_init_security(inode, dir, qstr,
					     &xfs_initxattrs, NULL);
}