]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit95b9b88d2da5e43e025400afcb492643933bf858
tree40a417e9a20e0c91db886b8f873d7cbade9c656d
parentb0522e13b2e6266ac00dc579b79fbfee22753293
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: 1ababeba4a21f3dba3da3523c670b207fb2feb62 ("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