mirror of
https://github.com/torvalds/linux.git
synced 2026-12-06 21:34:39 +00:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>