Return-Path: MIME-Version: 1.0 Sender: vapier.adi@gmail.com In-Reply-To: <20101018191209.GE2468@vigoh> References: <1287268187-9628-1-git-send-email-vapier@gentoo.org> <20101018163223.GC2468@vigoh> <20101018191209.GE2468@vigoh> From: Mike Frysinger Date: Mon, 18 Oct 2010 15:39:11 -0400 Message-ID: Subject: Re: [PATCH] bluetooth: fix unaligned access to l2cap conf data To: "Gustavo F. Padovan" Cc: Harvey Harrison , linux-bluetooth@vger.kernel.org, Marcel Holtmann , uclinux-dist-devel@blackfin.uclinux.org, linux-kernel@vger.kernel.org, Andrew Morton , steven miao Content-Type: text/plain; charset=UTF-8 List-ID: On Mon, Oct 18, 2010 at 15:12, Gustavo F. Padovan wrote: > * Mike Frysinger [2010-10-18 15:10:36 -0400]: >> On Mon, Oct 18, 2010 at 12:32, Gustavo F. Padovan wrote: >> > * Harvey Harrison [2010-10-18 11:17:28 -07= 00]: >> >> On Sat, Oct 16, 2010 at 3:29 PM, Mike Frysinger w= rote: >> >> > From: steven miao >> >> > >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0case 2: >> >> > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *((__le16 *) opt= ->val) =3D cpu_to_le16(val); >> >> > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 put_unaligned_le= 16(cpu_to_le16(val), opt->val); >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0break; >> >> >> >> I think you wanted: >> >> put_unaligned_le16(val, opt->val); >> > >> > I fixed that in the tree. Thanks for the report. >> >> i guess you fixed the 32bit one too ? >> =C2=A0 put_unaligned_le32(cpu_to_le32(val), opt->val); > > Yes, I did. cool. thanks guys ! -mike