Staging: brcmfmac: Fix MAC header lookup on 64-bit architectures
PATCH 2/5 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 Ben Hutchings <[email protected]>
---
Compile-tested only. This should be 2.6.37 material.
Ben.
drivers/staging/brcm80211/brcmfmac/dhd_linux.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/brcm80211/brcmfmac/dhd_linux.c +1 -1
@@ -1190,7 +1190,7 @@ void dhd_rx_frame(dhd_pub_t *dhdp, int ifidx, void *pktbuf, int numpkt)/* Process special event packets and then discard them */ if (ntoh16 (skb->protocol) ==ETHER_TYPE_BRCM )dhd_wl_host_event (dhd, &ifidx, - skb->mac_header, +skb_mac_header (skb), &event, &data);ASSERT (ifidx <DHD_MAX_IFS && dhd->iflist[ifidx]);
Signature · 1 line
1.7.2.3