ext4: fix kernel BUG on large-scale rm -rf commands
[linux-drm-fsl-dcu.git] / fs / ext4 / extents.c
index cd0c7ed0677200d09ce1445def04452a2f178978..aabbb3f53683f54081cd04c9a6d150e0121cc640 100644 (file)
@@ -2662,6 +2662,7 @@ cont:
                }
                path[0].p_depth = depth;
                path[0].p_hdr = ext_inode_hdr(inode);
+               i = 0;
 
                if (ext4_ext_check(inode, path[0].p_hdr, depth)) {
                        err = -EIO;