]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: sr: fix double free of skb after handling invalid SRH
authorDavid Lebrun <david.lebrun@uclouvain.be>
Wed, 19 Apr 2017 14:10:19 +0000 (16:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Apr 2017 17:16:01 +0000 (13:16 -0400)
commit114a2d2b67d11b1a7d9e9b635f627255e7b58d00
tree40a417e9a20e0c91db886b8f873d7cbade9c656d
parentdada3149e75ece563ea7feb7d6b4ab14f2eb3578
ipv6: sr: fix double free of skb after handling invalid SRH

The icmpv6_param_prob() function already does a kfree_skb(),
this patch removes the duplicate one.

Fixes: 9d4b6dbf17198a1935f2ea2116d06ca1a6505ab6 ("ipv6: implement dataplane support for rthdr type 4 (Segment Routing Header)")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Lebrun <david.lebrun@uclouvain.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/exthdrs.c