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_cdce.c | |
parent | df57327f728f0553ddc0b9f1ef216734458efa96 (diff) |
clear IFF_RUNNING & IFF_OACTIVE in foo_stop() before de-allocating resources.
Diffstat (limited to 'sys/dev/usb/if_cdce.c')
-rw-r--r-- | sys/dev/usb/if_cdce.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/if_cdce.c b/sys/dev/usb/if_cdce.c index e6a24ba819f..d52eefec67c 100644 --- a/sys/dev/usb/if_cdce.c +++ b/sys/dev/usb/if_cdce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cdce.c,v 1.8 2005/01/27 21:49:53 dlg Exp $ */ +/* $OpenBSD: if_cdce.c,v 1.9 2005/07/02 22:21:12 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000-2003 Bill Paul <wpaul@windriver.com> @@ -345,6 +345,7 @@ cdce_stop(struct cdce_softc *sc) int i; ifp->if_timer = 0; + ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE); if (sc->cdce_bulkin_pipe != NULL) { err = usbd_abort_pipe(sc->cdce_bulkin_pipe); @@ -391,8 +392,6 @@ cdce_stop(struct cdce_softc *sc) sc->cdce_cdata.cdce_tx_chain[i].cdce_xfer = NULL; } } - - ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE); } Static int |