UBI: bugfix in ubi_wl_flush()
authorRichard Weinberger <richard@nod.at>
Sun, 27 Jul 2014 07:35:48 +0000 (09:35 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 28 Jul 2014 16:07:33 +0000 (19:07 +0300)
commit49e236bc4a2639af0e77b3a05460e8367e3187a4
tree2cb521b8ee526da62921ed057f5de9f8ef6d0e52
parent4df38926f337ff4de49a8fb512aa4a55df0c502d
UBI: bugfix in ubi_wl_flush()

Use the _safe variant because we're iterating over a list where items get
deleted and freed.

Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/wl.c