recent USB MFCs cause panics
Julian Elischer
julian at elischer.org
Thu May 5 15:04:19 PDT 2005
Warner Losh wrote:
>From: Julian Elischer <julian at elischer.org>
>Subject: Re: recent USB MFCs cause panics
>Date: Thu, 05 May 2005 14:24:03 -0700
>
>
>
>>Julian Elischer wrote:
>>
>>try:
>>
>>in usb_port.h
>>comment out line 425 (as below)
>>
>>422
>> 423 #define config_detach(dev, flag) \
>> 424 do { \
>> 425 /* device_detach(dev); */ \
>> 426 free(device_get_ivars(dev), M_USB); \
>> 427 device_delete_child(device_get_parent(dev), dev); \
>> 428 } while (0);
>> 429
>>
>>
>
>Commenting it out is lame... I fixed this in current in uhub.c as
>well as here... Since 'dev' is 0 here, I'm unsure that commenting it
>out will fix the problem because the next line frees it....
>
>
do you remember the full extent of your fix?
I'm just learning about the bus/device stuff as I go..
the trick is bringing forward as much of the USB code withoug bringing
forward a bunch of subr_bus etc. as well.
>Warner
>_______________________________________________
>freebsd-usb at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-usb
>To unsubscribe, send any mail to "freebsd-usb-unsubscribe at freebsd.org"
>
>
More information about the freebsd-usb
mailing list