Commit 8658b4f1 authored by Dave Chinner's avatar Dave Chinner Committed by Sasha Levin

xfs: xfs_iozero can return positive errno

[ Upstream commit cddc1162 ]

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 2451337d ("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: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent bebd294b
...@@ -127,7 +127,7 @@ xfs_iozero( ...@@ -127,7 +127,7 @@ xfs_iozero(
status = 0; status = 0;
} while (count); } while (count);
return (-status); return status;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment