Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit bf514081 authored by Peter Wippich's avatar Peter Wippich Committed by Artem Bityutskiy
Browse files

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 <myfile>

Signed-off-by: default avatarPeter Wippich <pewi@gw-instruments.de>
Cc: stable@kernel.org
Tested-by: default avatarRicard Wanderlof <ricardw@axis.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 8b6e50c9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment