[PATCH 2/4] UBI: introduce a new IO return code
Sebastian Andrzej Siewior
sebastian at breakpoint.cc
Thu May 6 05:34:40 EDT 2010
* Artem Bityutskiy | 2010-05-03 13:13:00 [+0300]:
>diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c
>index f52adca..65d03b5 100644
>--- a/drivers/mtd/ubi/scan.c
>+++ b/drivers/mtd/ubi/scan.c
>@@ -745,7 +745,7 @@ static int process_eb(struct ubi_device *ubi, struct ubi_scan_info *si,
> bitflips = 1;
> else if (err == UBI_IO_PEB_EMPTY)
> return add_to_list(si, pnum, UBI_SCAN_UNKNOWN_EC, &si->erase);
>- else if (err == UBI_IO_BAD_HDR) {
>+ else if (err = UBI_IO_BAD_HDR_READ || err == UBI_IO_BAD_HDR) {
That part should be == and not = but you fix this in the next patch so I
guess it is okay.
> /*
> * We have to also look at the VID header, possibly it is not
> * corrupted. Set %bitflips flag in order to make this PEB be
Sebastian
More information about the linux-mtd
mailing list