Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84278
b: refs/heads/master
c: 69d7918
h: refs/heads/master
v: v3
  • Loading branch information
Kyungmin Park committed Jan 29, 2008
1 parent 5ae5199 commit 024c7c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 978cb38a296fceac82a8a757f6387d7ef2a21ac6
refs/heads/master: 69d79186dc48ca22a0ce69511bef8ef6c2465ada
9 changes: 5 additions & 4 deletions trunk/drivers/mtd/onenand/onenand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ int onenand_bbt_read_oob(struct mtd_info *mtd, loff_t from,
static int onenand_verify_oob(struct mtd_info *mtd, const u_char *buf, loff_t to)
{
struct onenand_chip *this = mtd->priv;
u_char oobbuf[64];
u_char *oob_buf = this->oob_buf;
int status, i;

this->command(mtd, ONENAND_CMD_READOOB, to, mtd->oobsize);
Expand All @@ -1226,9 +1226,9 @@ static int onenand_verify_oob(struct mtd_info *mtd, const u_char *buf, loff_t to
if (status)
return status;

this->read_bufferram(mtd, ONENAND_SPARERAM, oobbuf, 0, mtd->oobsize);
this->read_bufferram(mtd, ONENAND_SPARERAM, oob_buf, 0, mtd->oobsize);
for (i = 0; i < mtd->oobsize; i++)
if (buf[i] != 0xFF && buf[i] != oobbuf[i])
if (buf[i] != 0xFF && buf[i] != oob_buf[i])
return -EBADMSG;

return 0;
Expand Down Expand Up @@ -2307,7 +2307,8 @@ static int onenand_write_user_prot_reg(struct mtd_info *mtd, loff_t from,
static int onenand_lock_user_prot_reg(struct mtd_info *mtd, loff_t from,
size_t len)
{
unsigned char oob_buf[64];
struct onenand_chip *this = mtd->priv;
u_char *oob_buf = this->oob_buf;
size_t retlen;
int ret;

Expand Down

0 comments on commit 024c7c3

Please sign in to comment.