[PATCH 2/2] drivers/mtd/ubi: Eliminate update of list_for_each_entry loop cursor

Artem Bityutskiy dedekind1 at gmail.com
Sun Aug 8 06:25:07 EDT 2010

On Sat, 2010-08-07 at 11:09 +0200, Julia Lawall wrote:
> From: Julia Lawall <julia at diku.dk>
> list_for_each_entry uses its first argument to move from one element to the
> next, so modifying it can break the iteration.  The variable re1 is already
> used within the loop as a temporary variable, and is not live here.

Looks good, thanks, I'll push it to the UBI tree a bit later.

Best Regards,
Artem Bityutskiy (Артём Битюцкий)

More information about the linux-mtd mailing list