ext4: check for zero length extent explicitly
authorEryu Guan <guaneryu@gmail.com>
Thu, 14 May 2015 23:00:45 +0000 (19:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 14 May 2015 23:00:45 +0000 (19:00 -0400)
commit2f974865ffdfe7b9f46a9940836c8b167342563d
treefa8e553e8343141ff00a84c9589b54783cb1dbb6
parent9d506594069355d1fb2de3f9104667312ff08ed3
ext4: check for zero length extent explicitly

The following commit introduced a bug when checking for zero length extent

5946d08 ext4: check for overlapping extents in ext4_valid_extent_entries()

Zero length extent could pass the check if lblock is zero.

Adding the explicit check for zero length back.

Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
fs/ext4/extents.c