Subject: Re: kern/29326
To: None <joff@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Jesse Off <joff@embeddedARM.com>
List: netbsd-bugs
Date: 02/25/2005 04:54:02
The following reply was made to PR kern/29326; it has been noted by GNATS.
From: "Jesse Off" <joff@embeddedARM.com>
To: "Andreas Gustafsson" <gson@gson.org>
Cc: gnats-bugs@netbsd.org, "Andreas Gustafsson" <gson@gson.org>
Subject: Re: kern/29326
Date: Thu, 24 Feb 2005 21:51:28 -0700 (MST)
> joff@netbsd.org writes:
>> Please try rev 1.3 of src/sys/dev/usb/if_atu.c
>
> It's still crashing:
I can't reproduce the crash over here anymore (though I am on a USB 1.1
evbarm board). I've just been using while true; do ifconfig atu0 down;
ifconfig atu0 up; done. Please try this patch to src/sys/dev/usb/if_atu.c
or let me know a sure-fire way to reproduce the problem.
Index: if_atu.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/if_atu.c,v
retrieving revision 1.3
diff -u -r1.3 if_atu.c
--- if_atu.c 24 Feb 2005 06:06:11 -0000 1.3
+++ if_atu.c 25 Feb 2005 04:49:47 -0000
@@ -2155,6 +2155,7 @@
int s;
s = splnet();
+ ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE);
ifp->if_timer = 0;
/* Stop transfers. */
@@ -2194,6 +2195,5 @@
/* 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);
}