mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
xfs: xfs_iozero can return positive errno
commitcddc116228upstream. It was missed when we converted everything in XFs to use negative error numbers, so fix it now. Bug introduced in 3.17 by commit2451337("xfs: global error sign conversion"), and should go back to stable kernels. Thanks to Brian Foster for noticing it. 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d6ae189528
commit
d5d4c3be68
@@ -125,7 +125,7 @@ xfs_iozero(
|
||||
status = 0;
|
||||
} while (count);
|
||||
|
||||
return (-status);
|
||||
return status;
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user