serial: 8250: 8250_core: Fix missing unlock on error in serial8250_register_8250_port()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 3 Jul 2019 05:59:08 +0000 (05:59 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2019 17:28:40 +0000 (19:28 +0200)
commitb7a8f766482fa5893ca95cbf83195e60e96e389e
tree6ce5c79bc560a5d6f8b56d3bc63417972bbce4ee
parent84872dc448fe0ae11fe8412f4966e9c431a45b8f
serial: 8250: 8250_core: Fix missing unlock on error in serial8250_register_8250_port()

Add the missing unlock before return from function serial8250_register_8250_port()
in the error handling case.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20190703055908.141294-1-weiyongjun1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c