Searched hist:d02fd6e7d2933ede6478a15f9e4ce8a93845824e (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ |
H A D | macvlan.c | diff d02fd6e7d2933ede6478a15f9e4ce8a93845824e Tue Dec 26 07:44:32 CST 2017 Gao Feng <gfree.wind@vip.163.com> macvlan: Fix one possible double free
Because the macvlan_uninit would free the macvlan port, so there is one double free case in macvlan_common_newlink. When the macvlan port is just created, then register_netdevice or netdev_upper_dev_link failed and they would invoke macvlan_uninit. Then it would reach the macvlan_port_destroy which triggers the double free.
Signed-off-by: Gao Feng <gfree.wind@vip.163.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|