diff options
author | Richard Weinberger <richard@nod.at> | 2013-08-19 08:48:12 +0200 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-08-19 18:15:11 +0300 |
commit | 5ef4414f4bc26a19cfd5cd11aee9697a863e4d51 (patch) | |
tree | acc970ed3980932f92e0b7a2440ba8335bae8ccd /ipc | |
parent | b36f4be3de1b123d8601de062e7dbfc904f305fb (diff) | |
download | linux-stable-5ef4414f4bc26a19cfd5cd11aee9697a863e4d51.tar.gz linux-stable-5ef4414f4bc26a19cfd5cd11aee9697a863e4d51.tar.bz2 linux-stable-5ef4414f4bc26a19cfd5cd11aee9697a863e4d51.zip |
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>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions