projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
255ece7
)
staging: csr: fix the reset of skb mac header
author
Li RongQing
<roy.qing.li@gmail.com>
Thu, 13 Jun 2013 12:12:14 +0000
(20:12 +0800)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/staging/csr/monitor.c
b/drivers/staging/csr/monitor.c
index c8e20e4c6111a93577250f54b59c11c437295322..e11f6cba826608e762b09c9c7a20a5317643d38b 100644
(file)
--- 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));