Files
linux/drivers/mtd/ubi
Richard Weinberger e7d63334e7 UBI: Fix PEB leak in wear_leveling_worker()
commit 5ef4414f4b upstream.

get_peb_for_wl() removes the PEB from the free list.
If the WL subsystem detects that no wear leveling is needed
it cancels the operation and drops the gained PEB.
In this case we have to put the PEB back into the free list.

This issue was introduced with commit ed4b7021c
(UBI: remove PEB from free tree in get_peb_for_wl()).

Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-09-26 17:18:01 -07:00
..
2013-02-22 23:31:31 -05:00
2012-10-03 12:29:37 +03:00
2012-12-10 13:38:59 +02:00
2012-10-03 16:39:37 +03:00
2012-10-03 16:39:37 +03:00
2012-09-04 09:39:01 +03:00
2012-12-10 13:38:59 +02:00