ext4: Add null extent check to ext_get_path
authorAkira Fujita <a-fujita@rs.jp.nec.com>
Wed, 16 Sep 2009 18:25:07 +0000 (14:25 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 16 Sep 2009 18:25:07 +0000 (14:25 -0400)
commit347fa6f1c7cb5df2b38d3c9167cfe242ce0cd1da
tree1e4b467f7baa6c5fe291b0f53d6483776b2d5a54
parent2147b1a6a48e28399120ca51d4a91840a278611f
ext4: Add null extent check to ext_get_path

There is the possibility that path structure which is taken
by ext4_ext_find_extent() indicates null extents.
Because during data block exchanging in ext4_move_extents(),
constitution of an extent tree may be changed.
As a solution, the patch adds null extent check
to ext_get_path().

Reported-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Akira Fujita <a-fujita@rs.jp.nec.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/move_extent.c