diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-09-17 01:06:01 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-09-17 01:06:01 -0400 |
commit | f50e5ea14baa321c5f0ff71707a83b02bf5b9398 (patch) | |
tree | 2019c5bc11d99a353f3274853e913f489ed103ce /drivers/mtd/nand/nand_base.c | |
parent | ecf7f354e228ac9e80d2d25a0a0cbc8c876e9ab4 (diff) | |
parent | 803db244b9f71102e366fd689000c1417b9a7508 (diff) | |
download | kernel_samsung_smdk4412-f50e5ea14baa321c5f0ff71707a83b02bf5b9398.tar.gz kernel_samsung_smdk4412-f50e5ea14baa321c5f0ff71707a83b02bf5b9398.tar.bz2 kernel_samsung_smdk4412-f50e5ea14baa321c5f0ff71707a83b02bf5b9398.zip |
Merge branch 'upstream-fixes' into upstream
Diffstat (limited to 'drivers/mtd/nand/nand_base.c')
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index c8cbc00243f..0a54d003ef3 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -1204,7 +1204,7 @@ static int nand_write_oob_syndrome(struct mtd_info *mtd, pos = steps * (eccsize + chunk); steps = 0; } else - pos = eccsize + chunk; + pos = eccsize; chip->cmdfunc(mtd, NAND_CMD_SEQIN, pos, page); for (i = 0; i < steps; i++) { @@ -1567,7 +1567,7 @@ static uint8_t *nand_fill_oob(struct nand_chip *chip, uint8_t *oob, bytes = min_t(size_t, len, free->length); boffs = free->offset; } - memcpy(chip->oob_poi + woffs, oob, bytes); + memcpy(chip->oob_poi + boffs, oob, bytes); oob += bytes; } return oob; |