diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 6f13071d76d5..393533ff0527 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -690,11 +690,12 @@ void ext4_ext_drop_refs(struct ext4_ext_path *path) if (!path) return; depth = path->p_depth; - for (i = 0; i <= depth; i++, path++) + for (i = 0; i <= depth; i++, path++) { if (path->p_bh) { brelse(path->p_bh); path->p_bh = NULL; } + } } /*