From: Peter Wippich Date: Mon, 6 Jun 2011 13:50:58 +0000 (+0200) Subject: mtd: mtdchar: add missing initializer on raw write X-Git-Tag: v3.2-rc1~14^2~166 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf5140817b2d65faac9b32fc9057a097044ac35b;p=pandora-kernel.git mtd: mtdchar: add missing initializer on raw write 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 Signed-off-by: Peter Wippich Cc: stable@kernel.org Tested-by: Ricard Wanderlof Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed