Re: [PATCH net] macvlan: Fix one possible double free

2018-01-02 Thread David Miller
aFrom: gfree.w...@vip.163.com Date: Tue, 26 Dec 2017 21:44:32 +0800 > From: Gao Feng > > 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

[PATCH net] macvlan: Fix one possible double free

2017-12-26 Thread gfree . wind
From: Gao Feng 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_p