summaryrefslogtreecommitdiff
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2016-08-26 05:58:40 (GMT)
committerDave Chinner <david@fromorbit.com>2016-08-26 05:58:40 (GMT)
commited150e1a5cf20c04cf0b2d2c34e498fc1d6519be (patch)
tree867b5a19de18ad47ece6325be6ce8c6f986aaafd /fs/btrfs/volumes.c
parent32438cf9d54bd53b531f6d98814e84dd278360c1 (diff)
downloadlinux-ed150e1a5cf20c04cf0b2d2c34e498fc1d6519be.tar.xz
xfs: don't perform lookups on zero-height btrees
If the caller passes in a cursor to a zero-height btree (which is impossible), we never set block to anything but NULL, which causes the later dereference of it to crash. Instead, just return -EFSCORRUPTED. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
0 files changed, 0 insertions, 0 deletions