diff options
| -rw-r--r-- | fs/xfs/xfs_iops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index 301ecbfcc0be..adfb18e19992 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c | |||
| @@ -72,8 +72,8 @@ xfs_initxattrs( | |||
| 72 | int error = 0; | 72 | int error = 0; |
| 73 | 73 | ||
| 74 | for (xattr = xattr_array; xattr->name != NULL; xattr++) { | 74 | for (xattr = xattr_array; xattr->name != NULL; xattr++) { |
| 75 | error = xfs_attr_set(ip, xattr->name, xattr->value, | 75 | error = -xfs_attr_set(ip, xattr->name, xattr->value, |
| 76 | xattr->value_len, ATTR_SECURE); | 76 | xattr->value_len, ATTR_SECURE); |
| 77 | if (error < 0) | 77 | if (error < 0) |
| 78 | break; | 78 | break; |
| 79 | } | 79 | } |
| @@ -93,8 +93,8 @@ xfs_init_security( | |||
| 93 | struct inode *dir, | 93 | struct inode *dir, |
| 94 | const struct qstr *qstr) | 94 | const struct qstr *qstr) |
| 95 | { | 95 | { |
| 96 | return security_inode_init_security(inode, dir, qstr, | 96 | return -security_inode_init_security(inode, dir, qstr, |
| 97 | &xfs_initxattrs, NULL); | 97 | &xfs_initxattrs, NULL); |
| 98 | } | 98 | } |
| 99 | 99 | ||
| 100 | static void | 100 | static void |
