[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1320860080.24903.2.camel@dcbw.foobar.com>
Date: Wed, 09 Nov 2011 11:34:40 -0600
From: Dan Williams <dcbw@...hat.com>
To: Steven Miao <realmz6@...il.com>
Cc: "open list:NETWORKING DRIVERS" <netdev@...r.kernel.org>,
"open list:NETWORKING [WIREL..." <linux-wireless@...r.kernel.org>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] wireless: libertas: fix unaligned le64 accesses
On Wed, 2011-11-09 at 16:30 +0800, Steven Miao wrote:
> use get_unaligned_le64() to get timestamp
>
> Signed-off-by: Steven Miao <realmz6@...il.com>
Acked-by: Dan Williams <dcbw@...hat.com>
> ---
> drivers/net/wireless/libertas/cfg.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/wireless/libertas/cfg.c b/drivers/net/wireless/libertas/cfg.c
> index b456a53..f23c2b1 100644
> --- a/drivers/net/wireless/libertas/cfg.c
> +++ b/drivers/net/wireless/libertas/cfg.c
> @@ -630,7 +630,7 @@ static int lbs_ret_scan(struct lbs_private *priv, unsigned long dummy,
> if (channel &&
> !(channel->flags & IEEE80211_CHAN_DISABLED))
> cfg80211_inform_bss(wiphy, channel,
> - bssid, le64_to_cpu(*(__le64 *)tsfdesc),
> + bssid, get_unaligned_le64(tsfdesc),
> capa, intvl, ie, ielen,
> LBS_SCAN_RSSI_TO_MBM(rssi),
> GFP_KERNEL);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists