]> git.baikalelectronics.ru Git - kernel.git/commit
serial: ar933x_uart: disable clk on error handling path in probe
authorZheng Zengkai <zhengzengkai@huawei.com>
Wed, 11 Nov 2020 12:44:26 +0000 (20:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Nov 2020 08:41:07 +0000 (09:41 +0100)
commitfdf36e45f871d0f4bd780acabf7807ec4cfb7771
tree96619779b483e595b73cf2fdb4e87c3a20147003
parent172d82a03ba50cd7793135ec4304be192d8aa956
serial: ar933x_uart: disable clk on error handling path in probe

ar933x_uart_probe() does not invoke clk_disable_unprepare()
on one error handling path. This patch fixes that.

Fixes: ac998554cc6a ("serial: ar933x_uart: add RS485 support")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com>
Link: https://lore.kernel.org/r/20201111124426.42638-1-zhengzengkai@huawei.com
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/ar933x_uart.c