Commit 65683026 authored by Liu, Wentao's avatar Liu, Wentao Committed by Scott Wood
Browse files

nand_util: correct YAFFS image write function



In function nand_write_skip_bad(),for YAFFS filesystem part,
write_oob() will return 0 when success, so when rval equals 0,
it should continue to write the next page, and no break.
Signed-off-by: default avatarWentao, Liu <wentao.liu@intel.com>
Acked-by: default avatarLei Wen <leiwen@marvell.com>
Signed-off-by: default avatarScott Wood <scott@tyr.buserror.net>
parent d2a97daf
......@@ -564,7 +564,7 @@ int nand_write_skip_bad(nand_info_t *nand, loff_t offset, size_t *length,
ops.oobbuf = ops.datbuf + pagesize;
rval = nand->write_oob(nand, offset, &ops);
if (!rval)
if (rval != 0)
break;
offset += pagesize;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment