Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: translate ENOSPC for user space

In case of insufficient bandwidth usb_submit_urb()
returns -ENOSPC. Translating this to -EIO is not
optimal. There are insufficient resources not
an error. EBUSY is a better fit.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Link: https://patch.msgid.link/20260325145537.372993-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Oliver Neukum and committed by
Greg Kroah-Hartman
698f54d4 dd13bda7

+2
+2
include/linux/usb.h
··· 2075 2075 case -ENODEV: 2076 2076 case -EOPNOTSUPP: 2077 2077 return error_code; 2078 + case -ENOSPC: 2079 + return -EBUSY; 2078 2080 default: 2079 2081 return -EIO; 2080 2082 }