]> git.baikalelectronics.ru Git - kernel.git/commit
net: hso: bail out on interrupt URB allocation failure
authorJohan Hovold <johan@kernel.org>
Wed, 19 May 2021 12:47:17 +0000 (14:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 May 2021 20:11:39 +0000 (13:11 -0700)
commitd87bb6c673c9b7bcffa002180e0f966564383af4
tree08b8368180e743fc5f9ff6050517aba8ef393613
parent64f1ff0c4287878aaf2707cab4f5c932116d1af7
net: hso: bail out on interrupt URB allocation failure

Commit dc47ea9f4853 ("net: hso: check for allocation failure in
hso_create_bulk_serial_device()") recently started returning an error
when the driver fails to allocate resources for the interrupt endpoint
and tiocmget functionality.

For consistency let's bail out from probe also if the URB allocation
fails.

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/hso.c