[PATCH] xfs: fixed signedness of error code in xfs_inode_buf_verify

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Prior to v3.17, XFS used positive error codes internally.  Commits
backported from later releases need the error code signs reversed.
Negative error codes will cause assertion failures (BUG_ON on kernels
with assertions enabled.

Cc: <stable@xxxxxxxxxxxxxxx> # v3.12-v3.16
Signed-off-by: Jeff Mahoney <jeffm@xxxxxxxx>
---
 fs/xfs/xfs_inode_buf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/fs/xfs/xfs_inode_buf.c
+++ b/fs/xfs/xfs_inode_buf.c
@@ -101,7 +101,7 @@ xfs_inode_buf_verify(
 						XFS_RANDOM_ITOBP_INOTOBP))) {
 			if (readahead) {
 				bp->b_flags &= ~XBF_DONE;
-				xfs_buf_ioerror(bp, -EIO);
+				xfs_buf_ioerror(bp, EIO);
 				return;
 			}
 

-- 
Jeff Mahoney
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]