]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: avoid stamping on other memories in ext4_ext_insert_index()
authorTao Ma <boyu.mt@taobao.com>
Sat, 8 Oct 2011 21:18:27 +0000 (17:18 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 8 Oct 2011 21:18:27 +0000 (17:18 -0400)
commit4fd30c0330ba951d579ee3f0c24eaf1fa0580719
treedfd55a24df6ff0a4b625780c8530bb0bff71d12b
parentd44651d0f922b7aaeddd9fc04f2f5700a65983dd
ext4: avoid stamping on other memories in ext4_ext_insert_index()

In ext4_ext_insert_index, we initialize 'ix' before checking its
validity, so we have a chance to stamp on memories out of the block.
Move the check before we do the work.

Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c