]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: Fix BUG_ON condition in scrub_setup_recheck_block()
authorAshish Samant <ashish.samant@oracle.com>
Sat, 30 Apr 2016 01:09:15 +0000 (18:09 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 22 May 2016 21:42:22 +0000 (14:42 -0700)
commit4b402e8d6ceed9dd14c1696a248e96d870785d72
treec5b9da68ffa6c5b98d459d58c6c4554a1819681f
parentfdbc7938ccc5c66b83167a0821cd33aa6aa2a403
btrfs: Fix BUG_ON condition in scrub_setup_recheck_block()

pagev array in scrub_block{} is of size SCRUB_MAX_PAGES_PER_BLOCK.
page_index should be checked with the same to trigger BUG_ON().

Orabug : 22351960

Signed-off-by: Ashish Samant <ashish.samant@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c