diff options
author | Dave Chinner <dchinner@redhat.com> | 2015-05-29 07:40:32 +1000 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2015-06-09 13:43:53 -0400 |
commit | 8658b4f190913b9df1a8d4531630ab38f863f027 (patch) | |
tree | efa15b44c1fc6a861ec777252bf2d4cb7cd63a99 /fs | |
parent | bebd294bf63ec67763215d868a48e274c53590d5 (diff) |
xfs: xfs_iozero can return positive errno
[ Upstream commit cddc116228cb9d51d3224d23ba3e61fbbc3ec3d2 ]
It was missed when we converted everything in XFs to use negative error
numbers, so fix it now. Bug introduced in 3.17 by commit 2451337 ("xfs: global
error sign conversion"), and should go back to stable kernels.
Thanks to Brian Foster for noticing it.
cc: <stable@vger.kernel.org> # 3.17, 3.18, 3.19, 4.0
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index b28f0d680cb5..ba8b158a618a 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@ -127,7 +127,7 @@ xfs_iozero( status = 0; } while (count); - return (-status); + return status; } /* |