udp: with udp_segment release on error path
authorWillem de Bruijn <willemb@google.com>
Tue, 15 Jan 2019 16:40:02 +0000 (11:40 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jan 2019 23:48:11 +0000 (15:48 -0800)
commit0f149c9fec3cd720628ecde83bfc6f64c1e7dcb6
tree5ffd4dacfcc608682b18a9255b393f55e3ca6fdb
parent1a9352687c19e4937d861ff2c5c6fc45c0a08aff
udp: with udp_segment release on error path

Failure __ip_append_data triggers udp_flush_pending_frames, but these
tests happen later. The skb must be freed directly.

Fixes: bec1f6f697362 ("udp: generate gso with UDP_SEGMENT")
Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c
net/ipv6/udp.c