From: Mike Frysinger Date: Tue, 6 Mar 2012 11:09:02 -0500 Subject: [U-Boot] [PATCH 4/4] USB:gadget:designware Fix memory nonalignment issue In-Reply-To: <1329393818-24552-5-git-send-email-amit.virdi@st.com> References: <1329393818-24552-1-git-send-email-amit.virdi@st.com> <1329393818-24552-5-git-send-email-amit.virdi@st.com> Message-ID: <201203061109.07261.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday 16 February 2012 07:03:38 Amit Virdi wrote: > --- a/drivers/usb/gadget/designware_udc.c > +++ b/drivers/usb/gadget/designware_udc.c > > + /* copy back tmp buffer to bufp if bufp is not word aligned */ > + if ((int)bufp & 0x3) { > + bytp = (u8 *)&tmp[0]; > + for (i = 0; i < len; i++) > + bufp[i] = bytp[i]; > + } memcpy(bufp, tmp, len) ? -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: