Return-Path: Received: from mx2.suse.de ([195.135.220.15]:35296 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754781AbcJERrR (ORCPT ); Wed, 5 Oct 2016 13:47:17 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9A5BBAAB9 for ; Wed, 5 Oct 2016 17:47:16 +0000 (UTC) To: stable@vger.kernel.org From: Jeff Mahoney Subject: [PATCH] xfs: fixed signedness of error code in xfs_inode_buf_verify Message-ID: Date: Wed, 5 Oct 2016 13:47:15 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: 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: # v3.12-v3.16 Signed-off-by: Jeff Mahoney --- 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