xfs: fix wrong errno from xfs_initxattrs
Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Jie Liu <jeff.liu@oracle.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
parent
65149e3fab
commit
a5a14de22e
1 changed files with 4 additions and 4 deletions
|
@ -72,7 +72,7 @@ xfs_initxattrs(
|
||||||
int error = 0;
|
int error = 0;
|
||||||
|
|
||||||
for (xattr = xattr_array; xattr->name != NULL; xattr++) {
|
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);
|
xattr->value_len, ATTR_SECURE);
|
||||||
if (error < 0)
|
if (error < 0)
|
||||||
break;
|
break;
|
||||||
|
@ -93,7 +93,7 @@ xfs_init_security(
|
||||||
struct inode *dir,
|
struct inode *dir,
|
||||||
const struct qstr *qstr)
|
const struct qstr *qstr)
|
||||||
{
|
{
|
||||||
return security_inode_init_security(inode, dir, qstr,
|
return -security_inode_init_security(inode, dir, qstr,
|
||||||
&xfs_initxattrs, NULL);
|
&xfs_initxattrs, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue