[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTinMSbhTkH0zQn_YO7hFF7zkuv-Gj-B0BUFWy5nP@mail.gmail.com>
Date: Mon, 18 Oct 2010 11:17:28 -0700
From: Harvey Harrison <harvey.harrison@...il.com>
To: Mike Frysinger <vapier@...too.org>
Cc: linux-bluetooth@...r.kernel.org,
Marcel Holtmann <marcel@...tmann.org>,
uclinux-dist-devel@...ckfin.uclinux.org,
linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
steven miao <realmz6@...il.com>
Subject: Re: [PATCH] bluetooth: fix unaligned access to l2cap conf data
On Sat, Oct 16, 2010 at 3:29 PM, Mike Frysinger <vapier@...too.org> wrote:
> From: steven miao <realmz6@...il.com>
>
>
> 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);
Cheers,
Harvey
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists