diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-07-02 22:21:13 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-07-02 22:21:13 +0000 |
commit | 04ae3aef692ff7884067604e3b66019da4eed44e (patch) | |
tree | 13b944e8f6e9fc7d0e2548c07ca46013df1435c5 /sys/dev/usb/if_axe.c | |
parent | df57327f728f0553ddc0b9f1ef216734458efa96 (diff) |
clear IFF_RUNNING & IFF_OACTIVE in foo_stop() before de-allocating resources.
Diffstat (limited to 'sys/dev/usb/if_axe.c')
-rw-r--r-- | sys/dev/usb/if_axe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c index 812d3d48f64..b44821ee3e4 100644 --- a/sys/dev/usb/if_axe.c +++ b/sys/dev/usb/if_axe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_axe.c,v 1.26 2005/07/02 22:17:57 brad Exp $ */ +/* $OpenBSD: if_axe.c,v 1.27 2005/07/02 22:21:12 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000-2003 @@ -1297,6 +1297,7 @@ axe_stop(struct axe_softc *sc) ifp = &sc->arpcom.ac_if; ifp->if_timer = 0; + ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE); usb_uncallout(sc->axe_stat_ch, axe_tick, sc); @@ -1368,6 +1369,5 @@ axe_stop(struct axe_softc *sc) } sc->axe_link = 0; - ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE); } |