]> 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)
commit70df7fd9cc73cdd7005e0291af3b859b3ec2a484
treee97441cbb56686a6d6b30cb562435f01ca6ddb8a
parent88e8aa0b9fff032e3c0a6b035e2a767eac090b14
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