alistair23-linux/drivers/mtd/ubi
Richard Weinberger 5ef4414f4b UBI: Fix PEB leak in wear_leveling_worker()
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()).

Cc: <stable@vger.kernel.org> # 3.7.x
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
2013-08-19 18:15:11 +03:00
..
attach.c UBI: introduce helpers dbg_chk_{io, gen} 2012-12-10 13:38:59 +02:00
build.c A couple of fixes and clean-ups, allow for assigning user-defined 2013-07-05 12:09:48 -07:00
cdev.c ubi/cdev: switch to fixed_size_llseek() 2013-06-29 12:57:49 +04:00
debug.c UBI: embed ubi_debug_info field in ubi_device struct 2012-12-10 13:38:59 +02:00
debug.h mtd: rename random32() to prandom_u32() 2013-02-04 09:26:28 +02:00
eba.c
fastmap.c UBI: fastmap break out of used PEB search 2013-05-29 16:49:02 +03:00
gluebi.c UBI: gluebi: rename misleading variables 2012-11-30 13:54:41 +02:00
io.c UBI: introduce helpers dbg_chk_{io, gen} 2012-12-10 13:38:59 +02:00
kapi.c
Kconfig UBI: Wire-up fastmap 2012-10-03 16:39:37 +03:00
Makefile UBI: Wire-up fastmap 2012-10-03 16:39:37 +03:00
misc.c
ubi-media.h
ubi.h UBI: embed ubi_debug_info field in ubi_device struct 2012-12-10 13:38:59 +02:00
upd.c UBI: replace memcpy with struct assignment 2012-12-03 13:54:14 +02:00
vmt.c UBI: introduce helpers dbg_chk_{io, gen} 2012-12-10 13:38:59 +02:00
vtbl.c UBI: introduce helpers dbg_chk_{io, gen} 2012-12-10 13:38:59 +02:00
wl.c UBI: Fix PEB leak in wear_leveling_worker() 2013-08-19 18:15:11 +03:00