projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81280d5
)
[MTD] [OneNAND] Exit the loop when transferring/filling of the oob is finished
author
Kyungmin Park
<kyungmin.park@samsung.com>
Fri, 9 Mar 2007 00:41:07 +0000
(09:41 +0900)
committer
David Woodhouse
<dwmw2@infradead.org>
Fri, 9 Mar 2007 08:06:39 +0000
(08:06 +0000)
When transferring/filling of the oob is finished in OOB_AUTO, we exit the loop
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/onenand/onenand_base.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/onenand/onenand_base.c
b/drivers/mtd/onenand/onenand_base.c
index eac9b28785967e7fcbe79509f190b7d3f5d1b73f..6d4e67f6c295ac2b9c97a27c16d5b9373c17d327 100644
(file)
--- a/
drivers/mtd/onenand/onenand_base.c
+++ b/
drivers/mtd/onenand/onenand_base.c
@@
-854,7
+854,8
@@
static int onenand_transfer_auto_oob(struct mtd_info *mtd, uint8_t *buf, int col
int n = ed - st;
memcpy(buf, oob_buf + st, n);
buf += n;
- }
+ } else
+ break;
}
return 0;
}
@@
-1295,7
+1296,8
@@
static int onenand_fill_auto_oob(struct mtd_info *mtd, u_char *oob_buf,
int n = ed - st;
memcpy(oob_buf + st, buf, n);
buf += n;
- }
+ } else
+ break;
}
return 0;
}