From cf8c39531b788cbb95af72fdea78dbaeeb3ce2c1 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 25 Mar 2019 11:25:24 +0100 Subject: device: use skb accessor functions where possible Suggested-by: David Miller --- src/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/device.c b/src/device.c index 779c415..8735935 100644 --- a/src/device.c +++ b/src/device.c @@ -162,7 +162,7 @@ static netdev_tx_t wg_xmit(struct sk_buff *skb, struct net_device *dev) __skb_queue_head_init(&packets); if (!skb_is_gso(skb)) { - skb->next = NULL; + skb_mark_not_on_list(skb); } else { struct sk_buff *segs = skb_gso_segment(skb, 0); @@ -175,7 +175,7 @@ static netdev_tx_t wg_xmit(struct sk_buff *skb, struct net_device *dev) } do { next = skb->next; - skb->next = skb->prev = NULL; + skb_mark_not_on_list(skb); skb = skb_share_check(skb, GFP_ATOMIC); if (unlikely(!skb)) -- cgit v1.2.3-59-g8ed1b