mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] nftl: write support is broken
       [not found] <1996041455.3392751250629417929.JavaMail.root@zimbra3-e1.priv.proxad.net>
@ 2009-08-18 21:10 ` dimitri.gorokhovik
  0 siblings, 0 replies; only message in thread
From: dimitri.gorokhovik @ 2009-08-18 21:10 UTC (permalink / raw)
  To: David Woodhouse, David Woodhouse, Tim Gardner,
	Scott James Remnant, Julia Lawall, David Brownell
  Cc: linux-mtd, linux-kernel

Write support is broken in NFTL. Fix it.

Signed-off-by: <dimitri.gorokhovik@free.fr>

---

diff --git a/drivers/mtd/nftlcore.c b/drivers/mtd/nftlcore.c
index fb86cac..665d3eb 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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-18 21:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1996041455.3392751250629417929.JavaMail.root@zimbra3-e1.priv.proxad.net>
2009-08-18 21:10 ` [PATCH] nftl: write support is broken dimitri.gorokhovik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®