From: Scott Wood Date: Fri, 27 Dec 2013 15:19:08 -0600 Subject: [U-Boot] [PATCH 1/3] mtd: onenand: Fix unaligned access In-Reply-To: <1388016086-20293-1-git-send-email-marex@denx.de> References: <1388016086-20293-1-git-send-email-marex@denx.de> Message-ID: <1388179148.21454.8.camel@snotra.buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 2013-12-26 at 01:01 +0100, Marek Vasut wrote: > 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 > Cc: Albert Aribaud > Cc: Scott Wood > Cc: Tom Rini I don't see the onenand custodian on that CC list. -Scott