]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
USB: serial: propagate late probe errors
authorJohan Hovold <johan@kernel.org>
Tue, 20 Jun 2017 10:52:03 +0000 (12:52 +0200)
committerJohan Hovold <johan@kernel.org>
Wed, 21 Jun 2017 07:40:07 +0000 (09:40 +0200)
commitc22ac6d29f18d3210c545f77e4f95b856ab5f983
treeff1af4ebd80766423bd762abc0a5e9736096d4f5
parent45e5d4d418f37cb9b2746c1fc63ab89b7b521d78
USB: serial: propagate late probe errors

Propagate errnos for late probe errors (e.g. -ENOMEM on allocation
failures) instead of always returning -EIO.

Note that some drivers are currently returning -ENODEV from their attach
callbacks when a device is not supported, but this has also been mapped
to -EIO.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/usb-serial.c