Free device after removal

master
Kyle Schwarz 2026-05-05 20:33:14 -04:00
parent 22df13f695
commit 4b0b866362
1 changed files with 4 additions and 0 deletions

View File

@ -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);