diff options
author | Dimitri Gorokhovik <dimitri.gorokhovik@free.fr> | 2009-09-03 17:59:13 +0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-09-03 17:59:13 +0400 |
commit | 4149ed1aa944ab864024982a2e568d17eccff504 (patch) | |
tree | c6edeeefe922c68609e0458f423b9c1566751021 /drivers | |
parent | edcb3b14863e1a6aa1923eeaa81125a00cf51a80 (diff) | |
download | linux-4149ed1aa944ab864024982a2e568d17eccff504.tar.xz |
mtd: nftl: write support is broken
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/nftlcore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nftlcore.c b/drivers/mtd/nftlcore.c index fb86cacd5bdb..665d3eba2f47 100644 --- a/drivers/mtd/nftlcore.c +++ b/drivers/mtd/nftlcore.c @@ -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; |