hvcs: Use vhangup in hotplug remove
authorBrian King <brking@linux.vnet.ibm.com>
Fri, 3 Feb 2023 15:58:01 +0000 (09:58 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Feb 2023 12:09:15 +0000 (13:09 +0100)
commitd432228bc7b1b3f0ed06510278ff5a77b3749fe6
treef23cc0493a758d4d473283da073a754079ec8764
parent3a8d3b366ce47024bf274eac783f8af5df2780f5
hvcs: Use vhangup in hotplug remove

When hotplug removing an hvcs device, we need to ensure the
hangup processing is done prior to exiting the remove function,
so use tty_vhangup to do the hangup processing directly
rather than using tty_hangup which simply schedules the hangup
work for later execution.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Link: https://lore.kernel.org/r/20230203155802.404324-5-brking@linux.vnet.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvcs.c