linux/drivers/mtd/ubi
Artem Bityutskiy 5f1968d427 UBI: fix eraseblock picking criteria
commit 7eb3aa6585 upstream.

The 'find_wl_entry()' function expects the maximum difference as the second
argument, not the maximum absolute value. So the "unknown" eraseblock picking
was incorrect, as Shmulik Ladkani spotted. This patch fixes the issue.

Reported-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Reviewed-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-04-02 09:27:17 -07:00
..
build.c Merge branch 'linux-next' of git://git.infradead.org/ubifs-2.6 2011-03-18 10:50:27 -07:00
cdev.c UBI: fix nameless volumes handling 2012-01-25 17:24:44 -08:00
debug.c UBI: switch to dynamic printks 2011-05-20 08:30:34 +03:00
debug.h UBI: fix debugging messages 2012-01-25 17:24:44 -08:00
eba.c UBI: fix missing scrub when there is a bit-flip 2012-01-25 17:24:37 -08:00
gluebi.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
io.c UBI: fix typo in a message 2011-04-14 13:38:59 +03:00
kapi.c UBI: provide LEB offset information 2011-03-08 10:12:48 +02:00
Kconfig UBI: do not select KALLSYMS_ALL 2011-04-05 11:08:59 +03:00
Makefile UBI: make gluebi a separate module 2009-06-03 17:45:23 +03:00
misc.c UBI: make check_pattern function non-static 2010-10-19 17:19:57 +03:00
scan.c UBI: fix error handling in ubi_scan() 2012-04-02 09:27:17 -07:00
scan.h UBI: add slab cache for ubi_scan_leb objects 2011-02-06 19:19:23 +02:00
ubi-media.h UBI: use __packed instead of __attribute__((packed)) 2011-04-14 11:34:41 +03:00
ubi.h UBI: fix missing scrub when there is a bit-flip 2012-01-25 17:24:37 -08:00
upd.c UBI: fix memory leak in update path 2010-01-18 18:53:56 +02:00
vmt.c UBI: do not compare array with NULL 2011-04-05 11:08:58 +03:00
vtbl.c Merge branch 'linux-next' of git://git.infradead.org/ubi-2.6 2011-03-18 10:50:02 -07:00
wl.c UBI: fix eraseblock picking criteria 2012-04-02 09:27:17 -07:00