summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_tl.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-04-21 18:34:04 +0000
committerimp <imp@FreeBSD.org>2003-04-21 18:34:04 +0000
commit55161dbc6632c57d6a3fcffbcdc9a59dc6e85837 (patch)
tree0f3c4bf02902f61a556e6b18052de79329cb82dd /sys/pci/if_tl.c
parent68d1cc4cc56aa153d88ebdd81328775aa1563850 (diff)
downloadFreeBSD-src-55161dbc6632c57d6a3fcffbcdc9a59dc6e85837.zip
FreeBSD-src-55161dbc6632c57d6a3fcffbcdc9a59dc6e85837.tar.gz
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
Diffstat (limited to 'sys/pci/if_tl.c')
-rw-r--r--sys/pci/if_tl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/if_tl.c b/sys/pci/if_tl.c
index ebe64cc..4fb66ee 100644
--- a/sys/pci/if_tl.c
+++ b/sys/pci/if_tl.c
@@ -1349,7 +1349,7 @@ tl_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)) {
tl_stop(sc);
ether_ifdetach(ifp);
}
OpenPOWER on IntegriCloud