]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8d77e74ef9c7e92f5900b341b055001f0360dd57
treee97441cbb56686a6d6b30cb562435f01ca6ddb8a
parent923f8f267a2a0d835241a6c63f227f81d0b73943
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