aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/config.py
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2020-12-04 09:51:10 +0100
committerGreg Kroah-Hartman <[email protected]>2020-12-04 16:48:46 +0100
commit9dc9c8543aa0b9ef8852330b27cd2eef337bea18 (patch)
treeca0686ad3d31d089f3abd093f7b40bbab4525796 /scripts/gdb/linux/config.py
parentbaf7df456b3848e4b6f8648e754e3a0f77fe700e (diff)
USB: core: return -EREMOTEIO on short usb_control_msg_recv()
Return -EREMOTEIO instead of -EINVAL on short control transfers when using the new usb_control_msg_recv() helper. EINVAL is used to report invalid arguments (e.g. to the helper) and should not be used for unrelated errors. Many driver currently return -EIO on short control transfers but since host-controller drivers already use -EREMOTEIO for short transfers whenever the URB_SHORT_NOT_OK flag is set, let's use that here as well. This also allows usb_control_msg_recv() to eventually use URB_SHORT_NOT_OK without changing the return value again. Signed-off-by: Johan Hovold <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions