diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2005-02-28 05:59:01 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2005-02-28 05:59:01 +0000 |
commit | 014c38d37f9e8326998d73b99fcef6ac933ee170 (patch) | |
tree | 46e61764053c4a85e91da46ab58e9be1476341be /sys | |
parent | 7f449026218631b6690f4f52def0f279ba1088f8 (diff) |
another fix from netbsd pointed out by jsg@
Clear IFF_RUNNING flag before aborting usb pipes in atu_stop().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/if_atu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_atu.c b/sys/dev/usb/if_atu.c index 5fa75c8c42c..33267e27ee3 100644 --- a/sys/dev/usb/if_atu.c +++ b/sys/dev/usb/if_atu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_atu.c,v 1.52 2005/02/24 23:10:48 dlg Exp $ */ +/* $OpenBSD: if_atu.c,v 1.53 2005/02/28 05:59:00 dlg Exp $ */ /* * Copyright (c) 2003, 2004 * Daan Vreeken <Danovitsch@Vitsch.net>. All rights reserved. @@ -2225,6 +2225,7 @@ atu_stop(struct ifnet *ifp, int disable) int s; s = splnet(); + ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE); ifp->if_timer = 0; /* Stop transfers. */ @@ -2264,6 +2265,5 @@ atu_stop(struct ifnet *ifp, int disable) /* Let's be nice and turn off the radio before we leave */ atu_switch_radio(sc, 0); - ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE); splx(s); } |