diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-07-02 23:10:17 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-07-02 23:10:17 +0000 |
commit | a12d5644f5c5a2fa21bd66dfc2c3c4f3ac228ad0 (patch) | |
tree | 594442f34d6f7a62ff5af6cdbada393a1d81a464 /sys/dev/pci/if_ste.c | |
parent | 5ebc09d84d30a9d39b6610095d69063ffbda69f0 (diff) |
clear IFF_RUNNING & IFF_OACTIVE in foo_stop() before de-allocating resources.
Diffstat (limited to 'sys/dev/pci/if_ste.c')
-rw-r--r-- | sys/dev/pci/if_ste.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_ste.c b/sys/dev/pci/if_ste.c index f804eff0956..4b4e76371a5 100644 --- a/sys/dev/pci/if_ste.c +++ b/sys/dev/pci/if_ste.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ste.c,v 1.30 2005/04/21 06:48:05 fgsch Exp $ */ +/* $OpenBSD: if_ste.c,v 1.31 2005/07/02 23:10:11 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -1222,6 +1222,8 @@ void ste_stop(sc) timeout_del(&sc->sc_stats_tmo); + ifp->if_flags &= ~(IFF_RUNNING|IFF_OACTIVE); + CSR_WRITE_2(sc, STE_IMR, 0); STE_SETBIT2(sc, STE_MACCTL1, STE_MACCTL1_TX_DISABLE); STE_SETBIT2(sc, STE_MACCTL1, STE_MACCTL1_RX_DISABLE); @@ -1253,8 +1255,6 @@ void ste_stop(sc) bzero(sc->ste_ldata, sizeof(struct ste_list_data)); - ifp->if_flags &= ~(IFF_RUNNING|IFF_OACTIVE); - return; } |