|
@@ -486,6 +486,7 @@ int register_netdev ( struct net_device *netdev ) {
|
486
|
486
|
err_probe:
|
487
|
487
|
for_each_table_entry_continue_reverse ( driver, NET_DRIVERS )
|
488
|
488
|
driver->remove ( netdev );
|
|
489
|
+ clear_settings ( netdev_settings ( netdev ) );
|
489
|
490
|
unregister_settings ( netdev_settings ( netdev ) );
|
490
|
491
|
err_register_settings:
|
491
|
492
|
return rc;
|
|
@@ -570,6 +571,7 @@ void unregister_netdev ( struct net_device *netdev ) {
|
570
|
571
|
driver->remove ( netdev );
|
571
|
572
|
|
572
|
573
|
/* Unregister per-netdev configuration settings */
|
|
574
|
+ clear_settings ( netdev_settings ( netdev ) );
|
573
|
575
|
unregister_settings ( netdev_settings ( netdev ) );
|
574
|
576
|
|
575
|
577
|
/* Remove from device list */
|