Patch "Input: xpad - validate USB endpoint type during probe" has been added to the 4.13-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
Input: xpad - validate USB endpoint type during probe
to the 4.13-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
input-xpad-validate-usb-endpoint-type-during-probe.patch
and it can be found in the queue-4.13 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
122d6a347329818419b032c5a1776e6b3866d9b9Mon Sep 17 00:00:00 2001
From: Cameron Gutman <[email protected]>
Date: Tue, 12 Sep 2017 11:27:44 -0700
Subject: Input: xpad - validate USB endpoint type during probe
From: Cameron Gutman <[email protected]>
commit 122d6a347329818419b032c5a1776e6b3866d9b9 upstream.
We should only see devices with interrupt endpoints. Ignore any other endpoints that we find, so we don't send try to send them interrupt URBs and trigger a WARN down in the USB stack.
--- drivers/input/joystick/xpad.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
drivers/input/joystick/xpad.c +6 -4
@@ -1764,10 +1764,12 @@ static int xpad_probe(struct usb_interfastruct usb_endpoint_descriptor *ep = &intf->cur_altsetting->endpoint[i].desc; -if (usb_endpoint_dir_in (ep)) - ep_irq_in = ep; -else - ep_irq_out = ep; +if (usb_endpoint_xfer_int (ep)) { +if (usb_endpoint_dir_in (ep)) + ep_irq_in = ep; +else + ep_irq_out = ep; + } }if (!ep_irq_in || !ep_irq_out) {
Patches currently in stable-queue which might be from [email protected] are
queue-4.13/input-xpad-validate-usb-endpoint-type-during-probe.patch