]> git.itanic.dy.fi Git - linux-stable/commit
ext4: check for zero length extent explicitly
authorEryu Guan <guaneryu@gmail.com>
Thu, 14 May 2015 23:00:45 +0000 (19:00 -0400)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 10 Jun 2015 17:42:24 +0000 (13:42 -0400)
commitc164d09cd8eb3f6b8c183409695dc0eb3c4c503a
treeb6a9a6ed4d7b4bacc4b1fbc3ba5c392345b9d91b
parentd08570f3f052876a7a4472b66daac86c6a11b6b0
ext4: check for zero length extent explicitly

[ Upstream commit 2f974865ffdfe7b9f46a9940836c8b167342563d ]

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
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
fs/ext4/extents.c