mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
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>
This commit is contained in:
parent
dd13bda733
commit
698f54d4eb
|
|
@ -2075,6 +2075,8 @@ static inline int usb_translate_errors(int error_code)
|
|||
case -ENODEV:
|
||||
case -EOPNOTSUPP:
|
||||
return error_code;
|
||||
case -ENOSPC:
|
||||
return -EBUSY;
|
||||
default:
|
||||
return -EIO;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user