]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'vlan-QinQ-leak-fix'
authorDavid S. Miller <davem@davemloft.net>
Wed, 9 Feb 2022 13:33:39 +0000 (13:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Feb 2022 13:33:39 +0000 (13:33 +0000)
commit530cfc7390f86d217a28ec2ecdc2c67dfe71632f
tree735fa70930e02744565c7791bd8e0bb3bda7f26a
parent09e58ade8c3c73b663560e87377a5fc8a56a745d
parentaaa1b061b68a80326107a7022d31da39a86c668c
Merge branch 'vlan-QinQ-leak-fix'

Xin Long says:

====================
vlan: fix a netdev refcnt leak for QinQ

This issue can be simply reproduced by:

  # ip link add dummy0 type dummy
  # ip link add link dummy0 name dummy0.1 type vlan id 1
  # ip link add link dummy0.1 name dummy0.1.2 type vlan id 2
  # rmmod 8021q

 unregister_netdevice: waiting for dummy0.1 to become free. Usage count = 1

So as to fix it, adjust vlan_dev_uninit() in Patch 1/1 so that it won't
be called twice for the same device, then do the fix in vlan_dev_uninit()
in Patch 2/2.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>