mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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]> Cc: Brett Rudley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
69ec303a99
commit
d4fcdc6856
1 file changed
+1
-1
@@ -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 */
|
||||
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]);
|
||||
|
||||
Reference in new issue
Block a user