diff options
author | Cliff Cai <cliff.cai@analog.com> | 2009-05-27 14:03:09 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-06-03 14:05:11 -0400 |
commit | 2c5b9e511fee1a856ffe6332e15c72a20d2c72f6 (patch) | |
tree | 4f89eeb26547218a87797b9e1f3f886af490213c /drivers/net/wireless/libertas/scan.c | |
parent | 2493928e4dbefa1869413cf24b7f605b9b69d0d2 (diff) | |
download | talos-obmc-linux-2c5b9e511fee1a856ffe6332e15c72a20d2c72f6.tar.gz talos-obmc-linux-2c5b9e511fee1a856ffe6332e15c72a20d2c72f6.zip |
wireless: libertas: fix unaligned accesses
Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/scan.c')
-rw-r--r-- | drivers/net/wireless/libertas/scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c index e5e30b24cf02..601b54249677 100644 --- a/drivers/net/wireless/libertas/scan.c +++ b/drivers/net/wireless/libertas/scan.c @@ -1129,7 +1129,7 @@ static int lbs_ret_80211_scan(struct lbs_private *priv, unsigned long dummy, goto done; } - bytesleft = le16_to_cpu(scanresp->bssdescriptsize); + bytesleft = get_unaligned_le16(&scanresp->bssdescriptsize); lbs_deb_scan("SCAN_RESP: bssdescriptsize %d\n", bytesleft); scanrespsize = le16_to_cpu(resp->size); |