This is a note to let you know that I've just added the patch titled

    UBI: erase free PEB with bitflip in EC header

to the 3.4-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     ubi-erase-free-peb-with-bitflip-in-ec-header.patch
and it can be found in the queue-3.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 04ed02cc7d431eb295bf9a4cb33c13319f34c48a Mon Sep 17 00:00:00 2001
From: Matthieu CASTET <[email protected]>
Date: Wed, 22 Aug 2012 16:03:46 +0200
Subject: UBI: erase free PEB with bitflip in EC header

From: Matthieu CASTET <[email protected]>

commit 193819cf2e6e395b1e1be2d36785dc5563a6edca upstream.

Without this patch, these PEB are not scrubbed until we put data in them.
Bitflip can accumulate latter and we can loose the EC header (but VID header
should be intact and allow to recover data).

Signed-off-by: Matthieu Castet <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
[bwh: Backported to 3.2: adjust filename, context]
Signed-off-by: Ben Hutchings <[email protected]>
Cc: Qiang Huang <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 drivers/mtd/ubi/scan.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/mtd/ubi/scan.c
+++ b/drivers/mtd/ubi/scan.c
@@ -997,7 +997,7 @@ static int process_eb(struct ubi_device
                        return err;
                goto adjust_mean_ec;
        case UBI_IO_FF:
-               if (ec_err)
+               if (ec_err || bitflips)
                        err = add_to_list(si, pnum, ec, 1, &si->erase);
                else
                        err = add_to_list(si, pnum, ec, 0, &si->free);


Patches currently in stable-queue which might be from 
[email protected] are

queue-3.4/ubi-erase-free-peb-with-bitflip-in-ec-header.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to