mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
[MTD] Fix mtdconcat build. We didn't introduce mtd->writesize yet.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
parent
e8d32937d9
commit
fd0e518745
@ -276,8 +276,8 @@ concat_writev_ecc(struct mtd_info *mtd, const struct kvec *vecs,
|
||||
return -EINVAL;
|
||||
|
||||
/* Check alignment */
|
||||
if (mtd->writesize > 1)
|
||||
if ((to % mtd->writesize) || (total_len % mtd->writesize))
|
||||
if (mtd->oobblock > 1)
|
||||
if ((to % mtd->oobblock) || (total_len % mtd->oobblock))
|
||||
return -EINVAL;
|
||||
|
||||
/* make a copy of vecs */
|
||||
|
Loading…
Reference in New Issue
Block a user