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_wb.c | |
parent | 5ebc09d84d30a9d39b6610095d69063ffbda69f0 (diff) |
clear IFF_RUNNING & IFF_OACTIVE in foo_stop() before de-allocating resources.
Diffstat (limited to 'sys/dev/pci/if_wb.c')
-rw-r--r-- | sys/dev/pci/if_wb.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/pci/if_wb.c b/sys/dev/pci/if_wb.c index 88cf1264be1..e165eeda209 100644 --- a/sys/dev/pci/if_wb.c +++ b/sys/dev/pci/if_wb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wb.c,v 1.27 2005/01/15 05:24:11 brad Exp $ */ +/* $OpenBSD: if_wb.c,v 1.28 2005/07/02 23:10:11 brad Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1735,6 +1735,8 @@ void wb_stop(sc) timeout_del(&sc->wb_tick_tmo); + ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE); + WB_CLRBIT(sc, WB_NETCFG, (WB_NETCFG_RX_ON|WB_NETCFG_TX_ON)); CSR_WRITE_4(sc, WB_IMR, 0x00000000); CSR_WRITE_4(sc, WB_TXADDR, 0x00000000); @@ -1764,10 +1766,6 @@ void wb_stop(sc) bzero((char *)&sc->wb_ldata->wb_tx_list, sizeof(sc->wb_ldata->wb_tx_list)); - - ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE); - - return; } /* |