Bug in cfi_cmdset_0002.c in linux-2.6.8.1
Thayne Harbaugh
tharbaugh at lnxi.com
Thu Nov 11 12:45:38 EST 2004
On Thu, 2004-11-11 at 17:10 +0100, Steven Scholz wrote:
> Jochen Karrer wrote:
> > Hi,
> > jffs2 did not work in linux-2.6.8.1 because single word writes at the end
> > of a buffer write are done with the wrong address:
> >
> > --- /home/jkarrer/kernel/linux-2.6.8.1/drivers/mtd/chips/cfi_cmdset_0002.c
> > Sat Aug 14 12:55:20 2004
> > +++ cfi_cmdset_0002.c Thu Aug 26 14:33:42 2004
> > @@ -1128,7 +1128,7 @@
> > if (len) {
> > size_t retlen_dregs = 0;
> >
> > - ret = cfi_amdstd_write_words(mtd, to, len, &retlen_dregs, buf);
> > + ret = cfi_amdstd_write_words(mtd, ofs + (chipnum<<cfi->chipshift), len,
> > &retlen_dregs, buf);
> >
> > *retlen += retlen_dregs;
> > return ret;
>
> As far as I can see this bug is still not fixed in 2.6.9!
> Is it done in newer versions?
It's fixed in MTD CVS. I don't know if it has been pushed to Linus.
--
Thayne Harbaugh
Linux Networx
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20041111/7526ccbb/attachment.bin
More information about the linux-mtd
mailing list