]> Pileus Git - ~andy/linux/commitdiff
staging: csr: fix the reset of skb mac header
authorLi RongQing <roy.qing.li@gmail.com>
Thu, 13 Jun 2013 12:12:14 +0000 (20:12 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jun 2013 21:48:12 +0000 (14:48 -0700)
mac_header can be offset if NET_SKBUFF_DATA_USES_OFFSET is set, so
we should call skb_reset_mac_header to reset mac_header.

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/csr/monitor.c

index c8e20e4c6111a93577250f54b59c11c437295322..e11f6cba826608e762b09c9c7a20a5317643d38b 100644 (file)
@@ -188,7 +188,7 @@ netrx_radiotap(unifi_priv_t *priv,
 
 
     skb->dev = dev;
-    skb->mac_header = skb->data;
+    skb_reset_mac_header(skb);
     skb->pkt_type = PACKET_OTHERHOST;
     skb->protocol = __constant_htons(ETH_P_80211_RAW);
     memset(skb->cb, 0, sizeof(skb->cb));