From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gabriel C Subject: Re: [BUG, Regression, bisected] USB mouse causes bug on 1st insert, ignored on 2nd insert, lsusb stuck at usbdev_open Date: Tue, 21 Sep 2010 18:08:50 +0200 Message-ID: <4C98D892.7030605@googlemail.com> References: <4C98C70B.3080407@turmel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4C98C70B.3080407-xiX+HWoRdKcdnm+yROfE0A@public.gmane.org> Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Phil Turmel Cc: Alan Stern , Jiri Kosina , Mat , Guillaume Chazarain , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Greg Kroah-Hartman , Oliver Neukum , Alan Ott , linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Andreas Bombe , Alex Riesen List-Id: linux-input@vger.kernel.org On 21.09.2010 16:54, Phil Turmel wrote: > On 09/21/2010 10:30 AM, Alan Stern wrote: >> On Tue, 21 Sep 2010, Jiri Kosina wrote: >> >>> I have just found out that it's actually CONFIG_USB_DYNAMIC_MINORS which >>> makes the difference. When unset, the problem doesn't trigger, and >>> usb_find_interface() always returns the proper interface. When >>> CONFIG_USB_DYNAMIC_MINORS is being used, the oops happen. >>> >>> I'll look into that. >> >> Apparently the problem is that intf->minors doesn't get initialized >> properly. This patch should fix it. Everybody, please try it out. > > Yes, this works for me. (as did Jiri's version.) Both versions of the patch are working fine for me too also. > > Thank you both for the support. > > Feel free to add my: > > Tested-by: Philip J. Turmel And mine if you wish. Tested-by: Gabriel Craciunescu -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html