diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-21 22:19:10 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-24 10:15:29 -0700 |
commit | 032ac851fd42a62717032a594ac319f8a76b8a7d (patch) | |
tree | 55b2d3b0e122d1a0a41796f3caa10c9f9d0d35c7 /fs | |
parent | a1a184a2f31575dba677514f2de22ddf1671ad81 (diff) | |
download | lwn-032ac851fd42a62717032a594ac319f8a76b8a7d.tar.gz lwn-032ac851fd42a62717032a594ac319f8a76b8a7d.zip |
xfs: fix up backport error in fs/xfs/xfs_inode.c
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@whissi.de>
Reported-by: Brad Spender <spender@grsecurity.net>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Willy Tarreau <w@1wt.eu>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index fb8579d35cd4..47533013a772 100644 --- 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; } |