diff options
author | Dave Chinner <dchinner@redhat.com> | 2014-05-15 01:22:37 +0200 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-05-15 01:22:37 +0200 |
commit | 6670232b48848e5ad949dbd4866850aec7035f32 (patch) | |
tree | c3a924f5da28adae6a5f243fdfb90222a9211ac5 /fs/xfs/xfs_iops.c | |
parent | xfs: fix wrong errno from xfs_initxattrs (diff) | |
download | linux-6670232b48848e5ad949dbd4866850aec7035f32.tar.xz linux-6670232b48848e5ad949dbd4866850aec7035f32.zip |
xfs: fix wrong err sign on xfs_set_acl()
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_iops.c')
-rw-r--r-- | fs/xfs/xfs_iops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index adfb18e19992..36d630319a27 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c @@ -173,12 +173,12 @@ xfs_generic_create( #ifdef CONFIG_XFS_POSIX_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) goto out_cleanup_inode; } if (acl) { - error = xfs_set_acl(inode, acl, ACL_TYPE_ACCESS); + error = -xfs_set_acl(inode, acl, ACL_TYPE_ACCESS); if (error) goto out_cleanup_inode; } |