From: David S. Miller Date: Thu, 5 Mar 2009 07:46:25 +0000 (-0800) Subject: vlan: Fix vlan-in-vlan crashes. X-Git-Tag: v2.6.29-rc8~51^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d40bbda599def1e1d155d7f7dca14fe8744bd2b;p=pandora-kernel.git vlan: Fix vlan-in-vlan crashes. As analyzed by Patrick McHardy, vlan needs to reset it's netdev_ops pointer in it's ->init() function but this leaves the compat method pointers stale. Add a netdev_resync_ops() and call it from the vlan code. Any other driver which changes ->netdev_ops after register_netdevice() will need to call this new function after doing so too. With help from Patrick McHardy. Tested-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed