mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 15:31:14 +07:00
USB: iuu_phoenix: forward USB errors to USB serial core
Forward errors from usb_submit_urb in open. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
2479e2a9c0
commit
b58a64624c
@ -1168,15 +1168,14 @@ static int iuu_open(struct tty_struct *tty, struct usb_serial_port *port)
|
||||
port->write_urb->transfer_buffer, 1,
|
||||
read_rxcmd_callback, port);
|
||||
result = usb_submit_urb(port->write_urb, GFP_KERNEL);
|
||||
|
||||
if (result) {
|
||||
dev_err(&port->dev, "%s - failed submitting read urb,"
|
||||
" error %d\n", __func__, result);
|
||||
iuu_close(port);
|
||||
return -EPROTO;
|
||||
} else {
|
||||
dbg("%s - rxcmd OK", __func__);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user