From: Patrick McHardy Date: Mon, 21 Jan 2008 08:25:50 +0000 (-0800) Subject: [VLAN]: Simplify vlan unregistration X-Git-Tag: v2.6.25-rc1~1162^2~239 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af30151709bcace1ca844d4bb8b7e2e392ff81eb;p=pandora-kernel.git [VLAN]: Simplify vlan unregistration Keep track of the number of VLAN devices in a vlan group. This allows to have the caller sense when the group is going to be destroyed and stop using it, which in turn allows to remove the wrapper around unregister_vlan_dev for the NETDEV_UNREGISTER notifier and avoid iterating over all possible VLAN ids whenever a device in unregistered. Also fix what looks like a use-after-free (but is actually safe since we're holding the RTNL), the real_dev reference should not be dropped while we still use it. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed