Commit d4fcdc68 authored by Ben Hutchings's avatar Ben Hutchings Committed by Greg Kroah-Hartman

Staging: brcmfmac: Fix MAC header lookup on 64-bit architectures

Fix direct use of sk_buff::mac_header which is an offset rather
than a pointer on 64-bit architectures.
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
Cc: Brett Rudley <brudley@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 69ec303a
...@@ -1189,7 +1189,7 @@ void dhd_rx_frame(dhd_pub_t *dhdp, int ifidx, void *pktbuf, int numpkt) ...@@ -1189,7 +1189,7 @@ void dhd_rx_frame(dhd_pub_t *dhdp, int ifidx, void *pktbuf, int numpkt)
/* Process special event packets and then discard them */ /* Process special event packets and then discard them */
if (ntoh16(skb->protocol) == ETHER_TYPE_BRCM) if (ntoh16(skb->protocol) == ETHER_TYPE_BRCM)
dhd_wl_host_event(dhd, &ifidx, dhd_wl_host_event(dhd, &ifidx,
skb->mac_header, skb_mac_header(skb),
&event, &data); &event, &data);
ASSERT(ifidx < DHD_MAX_IFS && dhd->iflist[ifidx]); ASSERT(ifidx < DHD_MAX_IFS && dhd->iflist[ifidx]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment