Richard Weinberger f7d11b33d4 ubi: Fix Fastmap's update_vol()
Usually Fastmap is free to consider every PEB in one of the pools
as newer than the existing PEB. Since PEBs in a pool are by definition
newer than everything else.
But update_vol() missed the case that a pool can contain more than
one candidate.

Cc: <stable@vger.kernel.org>
Fixes: dbb7d2a88d ("UBI: Add fastmap core")
Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
2016-10-02 22:55:02 +02:00
..
2016-10-02 22:48:14 +02:00
2016-10-02 22:48:14 +02:00
2015-04-13 21:05:17 +02:00
2016-10-02 22:54:01 +02:00
2016-10-02 22:55:02 +02:00
2016-07-29 23:31:54 +02:00
2016-10-02 22:48:14 +02:00
2015-10-03 20:09:41 +02:00
2016-10-02 22:48:14 +02:00
2016-10-02 22:48:14 +02:00
2016-10-02 22:48:14 +02:00
2016-10-02 22:54:01 +02:00
2015-03-26 22:47:38 +01:00