提交 fd0e5187 编写于 作者: D David Woodhouse

[MTD] Fix mtdconcat build. We didn't introduce mtd->writesize yet.

Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
上级 e8d32937
...@@ -276,8 +276,8 @@ concat_writev_ecc(struct mtd_info *mtd, const struct kvec *vecs, ...@@ -276,8 +276,8 @@ concat_writev_ecc(struct mtd_info *mtd, const struct kvec *vecs,
return -EINVAL; return -EINVAL;
/* Check alignment */ /* Check alignment */
if (mtd->writesize > 1) if (mtd->oobblock > 1)
if ((to % mtd->writesize) || (total_len % mtd->writesize)) if ((to % mtd->oobblock) || (total_len % mtd->oobblock))
return -EINVAL; return -EINVAL;
/* make a copy of vecs */ /* make a copy of vecs */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册