summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDarrick J. Wong2018-05-24 17:54:59 +0200
committerDarrick J. Wong2018-05-29 19:46:03 +0200
commit2e050e648ad6c74a2f0a28f645155128be0626ca (patch)
tree1b57aebcbefb5504d55a6d049df7d0038e226da6 /fs
parentfs: clear writeback errors in inode_init_always (diff)
downloadkernel-qcow2-linux-2e050e648ad6c74a2f0a28f645155128be0626ca.tar.gz
kernel-qcow2-linux-2e050e648ad6c74a2f0a28f645155128be0626ca.tar.xz
kernel-qcow2-linux-2e050e648ad6c74a2f0a28f645155128be0626ca.zip
xfs: fix inobt magic number check
In commit a6a781a58befcbd467c ("xfs: have buffer verifier functions report failing address") the bad magic number return was ported incorrectly. Fixes: a6a781a58befcbd467ce843af4eaca3906aa1f08 Reported-by: syzbot+08ab33be0178b76851c8@syzkaller.appspotmail.com Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/libxfs/xfs_ialloc_btree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc_btree.c b/fs/xfs/libxfs/xfs_ialloc_btree.c
index ba053a4c124f..b04c55512159 100644
--- a/fs/xfs/libxfs/xfs_ialloc_btree.c
+++ b/fs/xfs/libxfs/xfs_ialloc_btree.c
@@ -296,7 +296,7 @@ xfs_inobt_verify(
case cpu_to_be32(XFS_FIBT_MAGIC):
break;
default:
- return NULL;
+ return __this_address;
}
/* level verification */