Re: [PATCH net] net: 8021q: Fix one possible panic caused by BUG_ON in free_netdev

2017-06-19 Thread David Miller
From: gfree.w...@vip.163.com Date: Fri, 16 Jun 2017 15:00:02 +0800 > From: Gao Feng > > The register_vlan_device would invoke free_netdev directly, when > register_vlan_dev failed. It would trigger the BUG_ON in free_netdev > if the dev was already registered. In this case, the netdev would be >

[PATCH net] net: 8021q: Fix one possible panic caused by BUG_ON in free_netdev

2017-06-16 Thread gfree . wind
From: Gao Feng The register_vlan_device would invoke free_netdev directly, when register_vlan_dev failed. It would trigger the BUG_ON in free_netdev if the dev was already registered. In this case, the netdev would be freed in netdev_run_todo later. So add one condition check now. Only when dev