summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_udav.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-07-02 22:21:13 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-07-02 22:21:13 +0000
commit04ae3aef692ff7884067604e3b66019da4eed44e (patch)
tree13b944e8f6e9fc7d0e2548c07ca46013df1435c5 /sys/dev/usb/if_udav.c
parentdf57327f728f0553ddc0b9f1ef216734458efa96 (diff)
clear IFF_RUNNING & IFF_OACTIVE in foo_stop() before de-allocating resources.
Diffstat (limited to 'sys/dev/usb/if_udav.c')
-rw-r--r--sys/dev/usb/if_udav.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_udav.c b/sys/dev/usb/if_udav.c
index 5cf06ee4ae3..ce4cd039d8d 100644
--- a/sys/dev/usb/if_udav.c
+++ b/sys/dev/usb/if_udav.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_udav.c,v 1.11 2005/07/02 22:17:58 brad Exp $ */
+/* $OpenBSD: if_udav.c,v 1.12 2005/07/02 22:21:12 brad Exp $ */
/* $NetBSD: if_udav.c,v 1.3 2004/04/23 17:25:25 itojun Exp $ */
/* $nabe: if_udav.c,v 1.3 2003/08/21 16:57:19 nabe Exp $ */
/*
@@ -1320,6 +1320,7 @@ udav_stop(struct ifnet *ifp, int disable)
DPRINTF(("%s: %s: enter\n", USBDEVNAME(sc->sc_dev), __func__));
ifp->if_timer = 0;
+ ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE);
udav_reset(sc);
@@ -1393,7 +1394,6 @@ udav_stop(struct ifnet *ifp, int disable)
}
sc->sc_link = 0;
- ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE);
}
/* Set media options */