From 55161dbc6632c57d6a3fcffbcdc9a59dc6e85837 Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 21 Apr 2003 18:34:04 +0000 Subject: Use newly minted device_is_attached rather than device_is_alive to see if attach succeeded. device_is_alive just tells us that probe succeeded. Since we were using it to do things like detach net interfaces, this caused problems when there were errors in the attach routine. Symptoms of problem reported by: martin blapp --- sys/dev/ti/if_ti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/ti') diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index 5046685..614a408 100644 --- a/sys/dev/ti/if_ti.c +++ b/sys/dev/ti/if_ti.c @@ -2377,7 +2377,7 @@ ti_detach(dev) ifp = &sc->arpcom.ac_if; /* These should only be active if attach succeeded */ - if (device_is_alive(dev)) { + if (device_is_attached(dev)) { ti_stop(sc); ether_ifdetach(ifp); bus_generic_detach(dev); -- cgit v1.1