diff options
author | Jiri Slaby <jslaby@suse.cz> | 2021-07-23 10:43:11 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-27 13:17:20 +0300 |
commit | 7ccbdcc4d08a6d7041e4849219bbb12ffa45db4c (patch) | |
tree | d9a15ec0ad9ab0cf0e518c3e7dfe6f7351a0354b /arch/xtensa/platforms | |
parent | 23411c720052ad860b3e579ee4873511e367130a (diff) | |
download | linux-7ccbdcc4d08a6d7041e4849219bbb12ffa45db4c.tar.xz |
hvsi: don't panic on tty_register_driver failure
The alloc_tty_driver failure is handled gracefully in hvsi_init. But
tty_register_driver is not. panic is called if that one fails.
So handle the failure of tty_register_driver gracefully too. This will
keep at least the console functional as it was enabled earlier by
console_initcall in hvsi_console_init. Instead of shooting down the
whole system.
This means, we disable interrupts and restore hvsi_wait back to
poll_for_state().
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210723074317.32690-3-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/xtensa/platforms')
0 files changed, 0 insertions, 0 deletions