From: Mario Limonciello Date: Fri, 27 Jun 2025 19:23:44 +0000 (-0700) Subject: Input: xpad - return errors from xpad_try_sending_next_out_packet() up X-Git-Tag: v6.16-rc5~21^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77451cb102506a980cd299581e1c03a367af3c9a;p=thirdparty%2Fkernel%2Flinux.git Input: xpad - return errors from xpad_try_sending_next_out_packet() up Not all errors that occur in xpad_try_sending_next_out_packet() are IO errors. Pass up the error code to the caller so that it can decide what to do. Signed-off-by: Mario Limonciello Link: https://lore.kernel.org/r/20250609014718.236827-3-superm1@kernel.org Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index 714a694fc0e5e..e0374111d0174 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -1349,7 +1349,7 @@ static int xpad_try_sending_next_out_packet(struct usb_xpad *xpad) "%s - usb_submit_urb failed with result %d\n", __func__, error); usb_unanchor_urb(xpad->irq_out); - return -EIO; + return error; } xpad->irq_out_active = true;