ext4: always check ext4_ext_find_extent result
authorDmitry Monakhov <dmonakhov@openvz.org>
Sun, 13 Apr 2014 19:41:13 +0000 (15:41 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 13 Apr 2014 19:41:13 +0000 (15:41 -0400)
commita18ed359bdddcded4f97ff5e2f07793ff9336913
treee97441cbb56686a6d6b30cb562435f01ca6ddb8a
parent8dc79ec4c0537e1b83c0739af82a7babefb30012
ext4: always check ext4_ext_find_extent result

Where are some places where logic guaranties us that extent we are
searching exits, but this may not be true due to on-disk data
corruption. If such corruption happens we must prevent possible
null pointer dereferences.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c