David S. Miller 9d40bbda59 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 <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-03-04 23:46:25 -08:00
..
2009-03-04 23:46:25 -08:00
2008-11-14 00:53:54 -08:00
2008-12-15 23:44:31 -08:00
2008-11-07 22:52:34 -08:00
2008-11-25 17:35:18 -08:00
2009-03-03 01:14:27 -08:00
2008-11-25 17:31:51 -08:00
2008-11-19 21:40:23 -08:00
2008-11-18 18:52:37 +11:00
2008-07-25 10:53:29 -07:00