diff options
author | Warner Losh <imp@FreeBSD.org> | 2003-04-21 18:34:04 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2003-04-21 18:34:04 +0000 |
commit | 214073e5e40bb05206c2e00041a1b2dddb2e754d (patch) | |
tree | 0f3c4bf02902f61a556e6b18052de79329cb82dd /sys/pci/if_ste.c | |
parent | 1f27c12a7e39d466c372f957e66e2e6da8b7993d (diff) | |
download | src-214073e5e40bb05206c2e00041a1b2dddb2e754d.tar.gz src-214073e5e40bb05206c2e00041a1b2dddb2e754d.zip |
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
Notes
Notes:
svn path=/head/; revision=113812
Diffstat (limited to 'sys/pci/if_ste.c')
-rw-r--r-- | sys/pci/if_ste.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/if_ste.c b/sys/pci/if_ste.c index 3c913a090474..1377c459bf1e 100644 --- a/sys/pci/if_ste.c +++ b/sys/pci/if_ste.c @@ -1089,7 +1089,7 @@ ste_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)) { ste_stop(sc); ether_ifdetach(ifp); } |