diff options
author | Qinglang Miao <miaoqinglang@huawei.com> | 2020-11-03 16:49:42 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-11-06 17:24:41 +0100 |
commit | 0c5fc92622ed5531ff324b20f014e9e3092f0187 (patch) | |
tree | ca3cb374dc28a0d30248f33784b19b2bf6f56ac5 /drivers/vlynq | |
parent | 427627a23c3e86e31113f9db9bfdca41698a0ee5 (diff) | |
download | linux-0c5fc92622ed5531ff324b20f014e9e3092f0187.tar.bz2 |
serial: txx9: add missing platform_driver_unregister() on error in serial_txx9_init
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: ab4382d27412 ("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>
Diffstat (limited to 'drivers/vlynq')
0 files changed, 0 insertions, 0 deletions