diff options
author | David S. Miller <davem@davemloft.net> | 2021-11-22 15:13:54 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-22 15:13:54 +0000 |
commit | 29910c7f8e2130fda667239602bceb111a5a6144 (patch) | |
tree | a12d2e5d8db5e44b4344dd3e949940f3ee84db87 | |
parent | e295886bcbaef6f7e4740d16d12d9f6b72908226 (diff) | |
parent | ca62f7fd0347e81d269d8233cb0dc805168f7083 (diff) | |
download | wireguard-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 '')
-rw-r--r-- | drivers/net/wireguard/queueing.h | 4 |
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; |