aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-01-13 18:42:27 -0500
committerDavid S. Miller <davem@davemloft.net>2020-01-14 11:48:41 -0800
commit1a186c14cedbf3364634f2dfa9302ed31b8fab19 (patch)
tree699c4bd2cbc052ea742bf406ddec9019990b4e51 /net/ipv4/udp.c
parentnet: skbuff: disambiguate argument and member for skb_list_walk_safe helper (diff)
downloadlinux-dev-1a186c14cedbf3364634f2dfa9302ed31b8fab19.tar.xz
linux-dev-1a186c14cedbf3364634f2dfa9302ed31b8fab19.zip
net: udp: use skb_list_walk_safe helper for gso segments
This is a straight-forward conversion case for the new function, iterating over the return value from udp_rcv_segment, which actually is a wrapper around skb_gso_segment. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/ipv4/udp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 93a355b6b092..208da0917469 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -2104,8 +2104,7 @@ static int udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
BUILD_BUG_ON(sizeof(struct udp_skb_cb) > SKB_SGO_CB_OFFSET);
__skb_push(skb, -skb_mac_offset(skb));
segs = udp_rcv_segment(sk, skb, true);
- for (skb = segs; skb; skb = next) {
- next = skb->next;
+ skb_list_walk_safe(segs, skb, next) {
__skb_pull(skb, skb_transport_offset(skb));
ret = udp_queue_rcv_one_skb(sk, skb);
if (ret > 0)