Free device after removal

This commit is contained in:
Kyle Schwarz
2026-05-05 20:33:14 -04:00
parent 22df13f695
commit 4b0b866362
+4
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);