Skip to contentSkip to conversation

staging: csr: fix the reset of skb mac header

PATCH RESEND New [email protected] 1 participant 1 message Jun 13, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 staging: csr: fix the reset of skb mac header

From: Li RongQing <[email protected]>

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.

Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/staging/csr/monitor.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/csr/monitor.c +1 -1
index c8e20e4..e11f6cb 100644
@@ -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));
Signature · 1 line
1.7.10.4