[VLAN]: Fix egress priority mappings leak.
authorPavel Emelyanov <xemul@openvz.org>
Fri, 4 Apr 2008 19:45:12 +0000 (12:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Apr 2008 19:45:12 +0000 (12:45 -0700)
commit23556323b22fef35bdc36465b7e7439ba3748c9f
treea82c7bfe8716a04b183bc9ac0689040be74229bc
parentb2a5c19ca0315723cecb9489ff8b67c4f17367b4
[VLAN]: Fix egress priority mappings leak.

These entries are allocated in vlan_dev_set_egress_priority,
but are never released and leaks on vlan device removal.

Drop these in vlan's ->uninit callback - after the device is
brought down and everyone is notified about it is going to
be unregistered.

Found during testing vlan netnsization patchset.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_dev.c