mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
mtd: nftl: write support is broken
Write support is broken in NFTL. Fix it. Signed-off-by: <[email protected]> Cc: Tim Gardner <[email protected]> Cc: Scott James Remnant <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
parent
edcb3b1486
commit
4149ed1aa9
1 changed files with 1 additions and 1 deletions
|
|
@ -181,7 +181,7 @@ static int nftl_write(struct mtd_info *mtd, loff_t offs, size_t len,
|
|||
int res;
|
||||
|
||||
ops.mode = MTD_OOB_PLACE;
|
||||
ops.ooboffs = offs;
|
||||
ops.ooboffs = offs & (mtd->writesize - 1);
|
||||
ops.ooblen = mtd->oobsize;
|
||||
ops.oobbuf = oob;
|
||||
ops.datbuf = buf;
|
||||
|
|
|
|||
Loading…
Reference in a new issue