summaryrefslogtreecommitdiff
path: root/drivers/net/wireguard/queueing.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2021-11-22 15:13:54 +0000
committerDavid S. Miller <davem@davemloft.net>2021-11-22 15:13:54 +0000
commit29910c7f8e2130fda667239602bceb111a5a6144 (patch)
treea12d2e5d8db5e44b4344dd3e949940f3ee84db87 /drivers/net/wireguard/queueing.h
parente295886bcbaef6f7e4740d16d12d9f6b72908226 (diff)
parentca62f7fd0347e81d269d8233cb0dc805168f7083 (diff)
downloadwireguard-linux-trimmed-29910c7f8e2130fda667239602bceb111a5a6144.tar.gz
wireguard-linux-trimmed-29910c7f8e2130fda667239602bceb111a5a6144.zip
Merge branch 'skbuff-struct-group'
Kees Cook says: ==================== skbuff: Switch structure bounds to struct_group() This is a pair of patches to add struct_group() to struct sk_buff. The first is needed to work around sparse-specific complaints, and is new for v2. The second patch is the same as originally sent as v1. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireguard/queueing.h')
-rw-r--r--drivers/net/wireguard/queueing.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireguard/queueing.h b/drivers/net/wireguard/queueing.h
index 4ef2944..52da5e9 100644
--- a/drivers/net/wireguard/queueing.h
+++ b/drivers/net/wireguard/queueing.h
@@ -79,9 +79,7 @@ static inline void wg_reset_packet(struct sk_buff *skb, bool encapsulating)
u8 sw_hash = skb->sw_hash;
u32 hash = skb->hash;
skb_scrub_packet(skb, true);
- memset(&skb->headers_start, 0,
- offsetof(struct sk_buff, headers_end) -
- offsetof(struct sk_buff, headers_start));
+ memset(&skb->headers, 0, sizeof(skb->headers));
if (encapsulating) {
skb->l4_hash = l4_hash;
skb->sw_hash = sw_hash;