serial: uartps: Fix missing unlock on error in cdns_get_id()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 25 Sep 2018 14:23:21 +0000 (14:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2018 20:38:58 +0000 (13:38 -0700)
commit823f4e53f0f2beef4ae43b0a8b33e27b0761b840
tree221d797c1ea5bc9f9afb0db3c113c0b704c44dc2
parent377fedd1866ae3979e4fe36193475b8acbc82784
serial: uartps: Fix missing unlock on error in cdns_get_id()

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

Fixes: ae1cca3fa347 ("serial: uartps: Change uart ID port allocation")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c