diff options
author | Peter Wippich <pewi@gw-instruments.de> | 2011-06-06 15:50:58 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-11 09:44:45 -0800 |
commit | ae3cf122cbdea40704270c88a5dbd2ab053402ee (patch) | |
tree | ed9f87765dc041d9890d0502a0bfe1dc89cdb042 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | ed89d010e4d505f4dc1afa77c45d65f1980e46da (diff) |
mtd: mtdchar: add missing initializer on raw write
commit bf5140817b2d65faac9b32fc9057a097044ac35b upstream.
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@gw-instruments.de>
Tested-by: Ricard Wanderlof <ricardw@axis.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions