If `depth' is less or equal to `at', a buffer underrun occurs Signed-off-by: Roel Kluin <roel.kluin@xxxxxxxxx> --- I am not sure whether this is possible. diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index afea652..25bc182 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -822,7 +822,7 @@ static int ext4_ext_split(handle_t *handle, struct inode *inode, } /* initialize new leaf */ - newblock = ablocks[--a]; + newblock = a ? ablocks[--a] : 0; BUG_ON(newblock == 0); bh = sb_getblk(inode->i_sb, newblock); if (!bh) { -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html