Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/pcn/if_pcn.c
Show First 20 Lines • Show All 678 Lines • ▼ Show 20 Lines | if (error) { | ||||
ether_ifdetach(ifp); | ether_ifdetach(ifp); | ||||
goto fail; | goto fail; | ||||
} | } | ||||
fail: | fail: | ||||
if (error) | if (error) | ||||
pcn_detach(dev); | pcn_detach(dev); | ||||
gone_by_fcp101_dev(dev); | |||||
return(error); | return(error); | ||||
} | } | ||||
/* | /* | ||||
* Shutdown hardware and free up resources. This can be called any | * Shutdown hardware and free up resources. This can be called any | ||||
* time after the mutex has been initialized. It is called in both | * time after the mutex has been initialized. It is called in both | ||||
* the error case in attach and the normal detach case so it needs | * the error case in attach and the normal detach case so it needs | ||||
* to be careful about only freeing resources that have actually been | * to be careful about only freeing resources that have actually been | ||||
▲ Show 20 Lines • Show All 828 Lines • Show Last 20 Lines |