Return-Path: Sender: "Gustavo F. Padovan" Date: Mon, 18 Oct 2010 14:32:23 -0200 From: "Gustavo F. Padovan" To: Harvey Harrison Cc: Mike Frysinger , linux-bluetooth@vger.kernel.org, Marcel Holtmann , uclinux-dist-devel@blackfin.uclinux.org, linux-kernel@vger.kernel.org, Andrew Morton , steven miao Subject: Re: [PATCH] bluetooth: fix unaligned access to l2cap conf data Message-ID: <20101018163223.GC2468@vigoh> References: <1287268187-9628-1-git-send-email-vapier@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: List-ID: Hi Harvey, * Harvey Harrison [2010-10-18 11:17:28 -0700]: > On Sat, Oct 16, 2010 at 3:29 PM, Mike Frysinger wrote: > > From: steven miao > > > > > > =A0 =A0 =A0 =A0case 2: > > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 *((__le16 *) opt->val) =3D cpu_to_le16(va= l); > > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 put_unaligned_le16(cpu_to_le16(val), opt-= >val); > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0break; > > >=20 > I think you wanted: > put_unaligned_le16(val, opt->val); I fixed that in the tree. Thanks for the report.=20 --=20 Gustavo F. Padovan ProFUSION embedded systems - http://profusion.mobi