From: Hans de Goede Date: Tue, 16 Apr 2013 09:08:33 +0000 (+0200) Subject: usbfs: Always allow ctrl requests with USB_RECIP_ENDPOINT on the ctrl ep X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~135^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1361bf4b9f9ef45e628a5b89e0fd9bedfdcb7104;p=pandora-kernel.git usbfs: Always allow ctrl requests with USB_RECIP_ENDPOINT on the ctrl ep When usbfs receives a ctrl-request from userspace it calls check_ctrlrecip, which for a request with USB_RECIP_ENDPOINT tries to map this to an interface to see if this interface is claimed, except for ctrl-requests with a type of USB_TYPE_VENDOR. When trying to use this device: http://www.akaipro.com/eiepro redirected to a Windows vm running on qemu on top of Linux. The windows driver makes a ctrl-req with USB_TYPE_CLASS and USB_RECIP_ENDPOINT with index 0, and the mapping of the endpoint (0) to the interface fails since ep 0 is the ctrl endpoint and thus never is part of an interface. This patch fixes this ctrl-req failing by skipping the checkintf call for USB_RECIP_ENDPOINT ctrl-reqs on the ctrl endpoint. Reported-by: Dave Stikkolorum Tested-by: Dave Stikkolorum Signed-off-by: Hans de Goede Acked-by: Alan Stern Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed