From owner-freebsd-usb@FreeBSD.ORG Thu May 5 22:04:19 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 349B416A4CE for ; Thu, 5 May 2005 22:04:19 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B65943D66 for ; Thu, 5 May 2005 22:04:19 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 8F9DD7A403; Thu, 5 May 2005 15:04:18 -0700 (PDT) Message-ID: <427A9862.1020100@elischer.org> Date: Thu, 05 May 2005 15:04:18 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050423 X-Accept-Language: en, hu MIME-Version: 1.0 To: Warner Losh References: <200505050618.j456IleO001353@sep.oldach.net> <427A887F.3020108@elischer.org> <427A8EF3.70003@elischer.org> <20050505.153302.71182158.imp@bsdimp.com> In-Reply-To: <20050505.153302.71182158.imp@bsdimp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: usb@freebsd.org cc: usbcrash@oldach.net Subject: Re: recent USB MFCs cause panics X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 22:04:19 -0000 Warner Losh wrote: >From: Julian Elischer >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@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-usb >To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > >