lkml.org 
[lkml]   [2012]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[ 39/82] mtd: nand: fix scan_read_raw_oob
    3.2-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Dmitry Maluka <D.Maluka@adbglobal.com>

    commit 34a5704d91d6f8376a4c0a0143a1dd3eb3ccb37e upstream.

    It seems there is a bug in scan_read_raw_oob() in nand_bbt.c which
    should cause wrong functioning of NAND_BBT_SCANALLPAGES option.

    Artem: the patch did not apply and I had to amend it a bit.

    Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
    Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
    ---
    drivers/mtd/nand/nand_bbt.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c
    index 20a112f..30d1319 100644
    --- a/drivers/mtd/nand/nand_bbt.c
    +++ b/drivers/mtd/nand/nand_bbt.c
    @@ -324,6 +324,7 @@ static int scan_read_raw_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs,

    buf += mtd->oobsize + mtd->writesize;
    len -= mtd->writesize;
    + offs += mtd->writesize;
    }
    return 0;
    }



    \
     
     \ /
      Last update: 2012-06-08 08:22    [W:0.037 / U:30.068 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site