]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Fix leak in ipv6_gso_segment().
authorDavid S. Miller <davem@davemloft.net>
Mon, 5 Jun 2017 01:41:10 +0000 (21:41 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jun 2017 01:41:10 +0000 (21:41 -0400)
commita2ad1a72264afba630e58cd1f564dae7b963f27e
treefa83f365a918287b03ba5bcc48dd0878cb14aa96
parent23fc66076f9d760996be9f6968d5ce84fa7e8518
ipv6: Fix leak in ipv6_gso_segment().

If ip6_find_1stfragopt() fails and we return an error we have to free
up 'segs' because nobody else is going to.

Fixes: f131fb620cdb ("ipv6: Prevent overrun when parsing v6 header options")
Reported-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_offload.c