ext4: check for zero length extent explicitly
authorEryu Guan <guaneryu@gmail.com>
Thu, 14 May 2015 23:00:45 +0000 (19:00 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Jun 2015 06:19:58 +0000 (23:19 -0700)
commit566831a12ef80b9622bf8263299d859bdd35128c
tree9c3dd852d16b8f592cfce560dea0d043ea6c15d7
parent4379534c0d1131fabc7b4482943774a58233335a
ext4: check for zero length extent explicitly

commit 2f974865ffdfe7b9f46a9940836c8b167342563d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/extents.c