Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4149ed1a authored by Dimitri Gorokhovik's avatar Dimitri Gorokhovik Committed by David Woodhouse
Browse files

mtd: nftl: write support is broken



Write support is broken in NFTL. Fix it.

Signed-off-by: default avatar <dimitri.gorokhovik@free.fr>
Cc: Tim Gardner <tim.gardner@canonical.com>
Cc: Scott James Remnant <scott@canonical.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent edcb3b14
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;