Files
u-boot-sunxi/drivers
Marek Vasut 9b56942f7d mtd: onenand: Fix unaligned access
Fix unaligned access in OneNAND core. The problem is that the ffchars[] array
is an array of "unsigned char", but in onenand_write_ops_nolock() can be passed
to the memcpy_16() function. The memcpy_16() function will treat the buffer as
an array of "unsigned short", thus triggering unaligned access if the compiler
decided ffchars[] to be not aligned.

I managed to trigger the problem with regular ELDK 5.4 GCC compiler.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Tom Rini <trini@ti.com>
2013-12-31 09:59:16 +01:00
..
2013-12-18 19:53:19 +01:00
2013-12-09 13:21:26 +01:00
2013-12-31 09:59:16 +01:00
2013-12-18 16:49:45 +09:00
2013-11-09 17:21:01 +01:00
2013-12-04 08:11:28 -05:00
2013-12-18 16:50:00 +09:00
2013-11-17 14:11:30 -05:00
2013-12-18 19:53:19 +01:00