diff options
| author | 2005-07-02 23:10:11 +0000 | |
|---|---|---|
| committer | 2005-07-02 23:10:11 +0000 | |
| commit | a9f9fb6a0c5fc63723c2320410cb8c5bb288f355 (patch) | |
| tree | 448fc6e149c4e82c49108469862a638b51e3b6f4 /sys/dev/pci/if_ste.c | |
| parent | add TLPHY_MEDIA_NO_10_T flag for DP4000 model (diff) | |
| download | wireguard-openbsd-a9f9fb6a0c5fc63723c2320410cb8c5bb288f355.tar.xz wireguard-openbsd-a9f9fb6a0c5fc63723c2320410cb8c5bb288f355.zip | |
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; } |
