From: Ihar Hrachyshka Date: Wed, 9 Jul 2008 06:29:58 +0000 (+0300) Subject: libertas: fix memory alignment problems on the blackfin X-Git-Tag: upstream/snapshot3+hdmi~24424^2~8^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=814feefa859a736d29d0700d49debf13904b429f;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git libertas: fix memory alignment problems on the blackfin Fixing unaligned memory access on the blackfin architecture. Signed-off-by: Ihar Hrachyshka Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c index d448c970..387d4878 100644 --- a/drivers/net/wireless/libertas/scan.c +++ b/drivers/net/wireless/libertas/scan.c @@ -567,11 +567,11 @@ static int lbs_process_bss(struct bss_descriptor *bss, pos += 8; /* beacon interval is 2 bytes long */ - bss->beaconperiod = le16_to_cpup((void *) pos); + bss->beaconperiod = get_unaligned_le16(pos); pos += 2; /* capability information is 2 bytes long */ - bss->capability = le16_to_cpup((void *) pos); + bss->capability = get_unaligned_le16(pos); lbs_deb_scan("process_bss: capabilities 0x%04x\n", bss->capability); pos += 2;