diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-07-02 23:17:37 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-07-02 23:17:37 +0000 |
commit | 852a54b9064f377b33e84efe6502c6854db511c5 (patch) | |
tree | c1c883366b01ef8ef46bd04812b700ae6b95495d /sys/dev/ic/rtl81x9.c | |
parent | d7deff1ddeb8bbe3031bc3bea7758b3f5fdb701f (diff) |
clear IFF_RUNNING & IFF_OACTIVE in rl_stop() before de-allocating resources.
Diffstat (limited to 'sys/dev/ic/rtl81x9.c')
-rw-r--r-- | sys/dev/ic/rtl81x9.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c index 81b3a5e4d0d..e69096eada8 100644 --- a/sys/dev/ic/rtl81x9.c +++ b/sys/dev/ic/rtl81x9.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtl81x9.c,v 1.40 2005/06/09 03:14:43 brad Exp $ */ +/* $OpenBSD: rtl81x9.c,v 1.41 2005/07/02 23:17:36 brad Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1178,6 +1178,8 @@ void rl_stop(sc) timeout_del(&sc->sc_tick_tmo); + ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE) + CSR_WRITE_1(sc, RL_COMMAND, 0x00); CSR_WRITE_2(sc, RL_IMR, 0x0000); @@ -1198,8 +1200,6 @@ void rl_stop(sc) 0x00000000); } } - - ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE); } int |