Re: [PATCH] USB: fix bug in initialization of interface minor numbers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 21, 2010 at 21:01, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:
> Recent changes in the usbhid layer exposed a bug in usbcore. ÂIf
> CONFIG_USB_DYNAMIC_MINORS is enabled then an interface may be assigned
> a minor number of 0. ÂHowever interfaces that aren't registered as USB
> class devices also have their minor number set to 0, during
> initialization. ÂAs a result usb_find_interface() may return the
> wrong interface, leading to a crash.
...
> Signed-off-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
> Tested-by: Philip J. Turmel <philip@xxxxxxxxxx>
> Tested-by: Gabriel Craciunescu <nix.or.die@xxxxxxxxxxxxxx>

FWIW, I too confirm the patch fixes the OOPS on my laptop.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux