Skip to content

Commit

Permalink
mtd: nftl: write support is broken
Browse files Browse the repository at this point in the history
Write support is broken in NFTL. Fix it.

Signed-off-by: <dimitri.gorokhovik@free.fr>
Cc: Tim Gardner <tim.gardner@canonical.com>
Cc: Scott James Remnant <scott@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Dimitri Gorokhovik authored and David Woodhouse committed Sep 3, 2009
1 parent edcb3b1 commit 4149ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nftlcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4149ed1

Please sign in to comment.