hvcs: Fix hvcs port reference counting
authorBrian King <brking@linux.vnet.ibm.com>
Wed, 1 Feb 2023 19:57:38 +0000 (13:57 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Feb 2023 10:51:03 +0000 (11:51 +0100)
commit6a9a733edd46732e906d976dc21a42dd361e53cc
tree2236626b4f6394c2b4ae5c8a28d8472ecd814cbd
parent2115a84d3688faef106abd19581a5a3b77845824
hvcs: Fix hvcs port reference counting

The hvcs driver only ever gets two references to the port. One
at initialization time, and one at install time. Remove the code
that was trying to do multiple port puts for each open, which
would result in more puts than gets.

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