[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20160622223531.495325437@linuxfoundation.org>
Date: Wed, 22 Jun 2016 15:37:26 -0700
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, "Thomas D." <whissi@...ssi.de>,
Brad Spender <spender@...ecurity.net>,
Dave Chinner <david@...morbit.com>, Willy Tarreau <w@....eu>,
Jiri Slaby <jslaby@...e.cz>
Subject: [PATCH 3.14 18/29] xfs: fix up backport error in fs/xfs/xfs_inode.c
3.14-stable review patch. If anyone has any objections, please let me know.
------------------
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Commit c66edeaf79bb6f0ca688ffec9ca50a61b7569984, which was a backport of
commit b1438f477934f5a4d5a44df26f3079a7575d5946 upstream, needed to have
the error value be positive, not negative, in order to work properly.
Reported-by: "Thomas D." <whissi@...ssi.de>
Reported-by: Brad Spender <spender@...ecurity.net>
Cc: Dave Chinner <david@...morbit.com>
Cc: Willy Tarreau <w@....eu>
Cc: Jiri Slaby <jslaby@...e.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
fs/xfs/xfs_inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -3098,7 +3098,7 @@ xfs_iflush(
*/
error = xfs_imap_to_bp(mp, NULL, &ip->i_imap, &dip, &bp, XBF_TRYLOCK,
0);
- if (error == -EAGAIN) {
+ if (error == EAGAIN) {
xfs_ifunlock(ip);
return error;
}
Powered by blists - more mailing lists