mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Allow the attach routine to fail gracefully and not panic the system.
This commit is contained in:
parent
d2b2128a28
commit
ba32f0ff83
1 changed files with 2 additions and 1 deletions
|
|
@ -389,7 +389,8 @@ ed_detach(device_t dev)
|
|||
callout_drain(&sc->tick_ch);
|
||||
ether_ifdetach(ifp);
|
||||
}
|
||||
bus_teardown_intr(dev, sc->irq_res, sc->irq_handle);
|
||||
if (sc->irq_res != NULL && sc->irq_handle)
|
||||
bus_teardown_intr(dev, sc->irq_res, sc->irq_handle);
|
||||
ed_release_resources(dev);
|
||||
ED_LOCK_DESTROY(sc);
|
||||
bus_generic_detach(dev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue