Skip to content

Commit

Permalink
Staging: brcmfmac: Fix MAC header lookup on 64-bit architectures
Browse files Browse the repository at this point in the history
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 <ben@decadent.org.uk>
Cc: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Ben Hutchings authored and Greg Kroah-Hartman committed Nov 9, 2010
1 parent 69ec303 commit d4fcdc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/brcm80211/brcmfmac/dhd_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit d4fcdc6

Please sign in to comment.