network devices: make sure kobjects always get unregistered.
Third time's a charm.. This moves the kobject_unregister() call to after the out: label, making sure it always gets unregistered. It wasn't if if (dev->features & NETIF_F_DYNALLOC) was true (which it is for PPP devices), causing re-registration of devices to fail.
Showing
Please register or sign in to comment