From 126898b0a26a7e1b01a5f90a19601495094e2055 Mon Sep 17 00:00:00 2001 From: Li RongQing Date: Thu, 13 Jun 2013 20:12:14 +0800 Subject: [PATCH] staging: csr: fix the reset of skb mac header 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/csr/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/csr/monitor.c b/drivers/staging/csr/monitor.c index c8e20e4c6111..e11f6cba8266 100644 --- a/drivers/staging/csr/monitor.c +++ b/drivers/staging/csr/monitor.c @@ -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));