diff options
author | Dave Chinner <[email protected]> | 2015-05-29 07:40:32 +1000 |
---|---|---|
committer | Dave Chinner <[email protected]> | 2015-05-29 07:40:32 +1000 |
commit | cddc116228cb9d51d3224d23ba3e61fbbc3ec3d2 (patch) | |
tree | 6913e0e428febbbd0a41a6230e9bb646a7160143 | |
parent | 6dfe5a049f2d48582050339d2a6b6fda36dfd14c (diff) |
xfs: xfs_iozero can return positive errno
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: <[email protected]> # 3.17, 3.18, 3.19, 4.0
Signed-off-by: Dave Chinner <[email protected]>
Reviewed-by: Brian Foster <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
-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 8121e75352ee..3b7591224f4a 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@ -124,7 +124,7 @@ xfs_iozero( status = 0; } while (count); - return (-status); + return status; } int |