xfs: fix wrong err sign on xfs_set_acl()
authorDave Chinner <dchinner@redhat.com>
Wed, 14 May 2014 23:22:37 +0000 (09:22 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 14 May 2014 23:22:37 +0000 (09:22 +1000)
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_iops.c

index adfb18e199926e28f9d0a25df22bcad79ae3b6be..36d630319a2784c7fe39f83fc9d66b74ee3add7b 100644 (file)
@@ -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;
        }