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)
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

Simple merge