From 014c38d37f9e8326998d73b99fcef6ac933ee170 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Mon, 28 Feb 2005 05:59:01 +0000 Subject: another fix from netbsd pointed out by jsg@ Clear IFF_RUNNING flag before aborting usb pipes in atu_stop(). --- sys/dev/usb/if_atu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/usb') 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 . 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); } -- cgit v1.2.3