[PATCH 1/1] MTD mtdchar: add missing initializer on raw write

Peter Wippich pewi at gw-instruments.de
Mon Jun 6 11:39:45 EDT 2011


Hi Artem,

On Mon, 6 Jun 2011, Artem Bityutskiy wrote:

> On Mon, 2011-06-06 at 15:50 +0200, Peter Wippich wrote:
>> On writes in MODE_RAW the mtd_oob_ops struct is not sufficiently
>> initialized which may cause nandwrite to fail. With this patch
>> it is possible to write raw nand/oob data without additional ECC
>> (either for testing or when some sectors need different oob layout
>> e.g. bootloader) like
>> nandwrite  -n -r -o  /dev/mtd0 <myfile>
>>
>> Signed-off-by: Peter Wippich <pewi at gw-instruments.de>
>
> Pushed your patch to the l2-mtd-2.6.git tree, thanks. It did not apply,
> but I amended it. I guess it is against some old kernel tree. Also, I've
> added "Cc: stable at kernel.org" to make sure it reaches the -stable tree.
>
> http://git.infradead.org/users/dedekind/l2-mtd-2.6.git/commit/87d5d1460c4e13636406a613f5740ef5e5cdbbfa
>
> A "Tested-by" would be great!
>
>

thanks. Thought it was again linux-next. May be a messed up something.
Next time I'll add a tested by .......

Cheers,

Peter





More information about the linux-mtd mailing list