diff options
author | Jiri Slaby <[email protected]> | 2021-07-23 09:43:10 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-07-27 12:17:20 +0200 |
commit | 23411c720052ad860b3e579ee4873511e367130a (patch) | |
tree | 97f53bbb7ef8870f21c9c54a79e7d9833e9f0a34 /drivers/usb/class/cdc-acm.c | |
parent | 52c27f13b52cd7b7893de4fc11f1555d3917c3e6 (diff) |
xtensa: ISS: don't panic in rs_init
While alloc_tty_driver failure in rs_init would mean we have much bigger
problem, there is no reason to panic when tty_register_driver fails
there. It can fail for various reasons.
So handle the failure gracefully. Actually handle them both while at it.
This will make at least the console functional as it was enabled earlier
by console_initcall in iss_console_init. Instead of shooting down the
whole system.
We move tty_port_init() after alloc_tty_driver(), so that we don't need
to destroy the port in case the latter function fails.
Cc: Chris Zankel <[email protected]>
Cc: Max Filippov <[email protected]>
Cc: [email protected]
Acked-by: Max Filippov <[email protected]>
Signed-off-by: Jiri Slaby <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
0 files changed, 0 insertions, 0 deletions