Files
linux/drivers/tty/serial
Qinglang Miao 4e8ac4ab97 serial: txx9: add missing platform_driver_unregister() on error in serial_txx9_init
commit 0c5fc92622 upstream.

Add the missing platform_driver_unregister() before return
from serial_txx9_init in the error handling case when failed
to register serial_txx9_pci_driver with macro ENABLE_SERIAL_TXX9_PCI
defined.

Fixes: ab4382d274 ("tty: move drivers/serial/ to drivers/tty/serial/")
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Link: https://lore.kernel.org/r/20201103084942.109076-1-miaoqinglang@huawei.com
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-16 09:46:19 +09:00
..
2015-11-20 16:19:54 -08:00
2023-05-16 09:37:57 +09:00
2016-02-06 22:16:21 -08:00
2014-06-19 13:04:52 -07:00
2023-05-15 10:54:35 +09:00