Free device after removal
parent
22df13f695
commit
4b0b866362
|
|
@ -416,6 +416,8 @@ static int intrepid_remove_can_if(int index)
|
|||
|
||||
unregister_candev(device);
|
||||
|
||||
free_candev(device);
|
||||
|
||||
net_devices[index] = NULL;
|
||||
|
||||
pr_info("intrepid: Removed device %d\n", index);
|
||||
|
|
@ -764,6 +766,8 @@ static int intrepid_remove_eth_if(int index)
|
|||
|
||||
unregister_netdev(device);
|
||||
|
||||
free_netdev(device);
|
||||
|
||||
net_devices[index] = NULL;
|
||||
|
||||
pr_info("intrepid: Removed device %d\n", index);
|
||||
|
|
|
|||
Loading…
Reference in New Issue