hvcs: Synchronize hotplug remove with port free
authorBrian King <brking@linux.vnet.ibm.com>
Fri, 3 Feb 2023 15:58:02 +0000 (09:58 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Feb 2023 12:09:15 +0000 (13:09 +0100)
commit28d49f8cbe9c7966f91ee1b5ec2f997f6e55bf9f
treec282d5a44f85d52f2a5ff9cc4cea149e9479ecf8
parentd432228bc7b1b3f0ed06510278ff5a77b3749fe6
hvcs: Synchronize hotplug remove with port free

Synchronizes hotplug remove with the freeing of the port.
This ensures we have freed all the memory associated with
this port and are not leaking memory.

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