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/ic/xl.c | |
parent | 5ebc09d84d30a9d39b6610095d69063ffbda69f0 (diff) |
clear IFF_RUNNING & IFF_OACTIVE in foo_stop() before de-allocating resources.
Diffstat (limited to 'sys/dev/ic/xl.c')
-rw-r--r-- | sys/dev/ic/xl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c index 38fde3ecbde..aafa07fd4f6 100644 --- a/sys/dev/ic/xl.c +++ b/sys/dev/ic/xl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xl.c,v 1.64 2005/04/25 17:55:51 brad Exp $ */ +/* $OpenBSD: xl.c,v 1.65 2005/07/02 23:10:16 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -2606,10 +2606,10 @@ xl_stop(sc) /* Stop the stats updater. */ timeout_del(&sc->xl_stsup_tmo); - xl_freetxrx(sc); - ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE); + xl_freetxrx(sc); + return; } |