From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755482Ab0JRTMU (ORCPT ); Mon, 18 Oct 2010 15:12:20 -0400 Received: from mail-yw0-f46.google.com ([209.85.213.46]:42615 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751209Ab0JRTMT convert rfc822-to-8bit (ORCPT ); Mon, 18 Oct 2010 15:12:19 -0400 Date: Mon, 18 Oct 2010 17:12:10 -0200 From: "Gustavo F. Padovan" To: Mike Frysinger 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 Subject: Re: [PATCH] bluetooth: fix unaligned access to l2cap conf data Message-ID: <20101018191209.GE2468@vigoh> References: <1287268187-9628-1-git-send-email-vapier@gentoo.org> <20101018163223.GC2468@vigoh> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * 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 -0700]: > >> On Sat, Oct 16, 2010 at 3:29 PM, Mike Frysinger wrote: > >> > From: steven miao > >> > > >> >        case 2: > >> > -               *((__le16 *) opt->val) = cpu_to_le16(val); > >> > +               put_unaligned_le16(cpu_to_le16(val), opt->val); > >> >                break; > >> > >> 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 ? > put_unaligned_le32(cpu_to_le32(val), opt->val); Yes, I did. -- Gustavo F. Padovan ProFUSION embedded systems - http://profusion.mobi