ext4: avoid a potential overflow in ext4_es_can_be_merged()
authorZheng Liu <wenqing.lz@taobao.com>
Mon, 11 Mar 2013 00:48:59 +0000 (20:48 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 11 Mar 2013 00:48:59 +0000 (20:48 -0400)
commitbd384364c1185ecb01f3b8242c915ccb5921c60d
treed6badf52d7d389180b1557fdaac856f1952031ce
parent6ca470d7b5e7639b7925b3202e796282703b6d5d
ext4: avoid a potential overflow in ext4_es_can_be_merged()

Check the length of an extent to avoid a potential overflow in
ext4_es_can_be_merged().

Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Dmitry Monakhov <dmonakhov@openvz.org>
fs/ext4/extents_status.c