]> git.baikalelectronics.ru Git - kernel.git/commit
tty: xilinx_uartps: Check clk_enable return value
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Fri, 29 Jul 2022 11:47:42 +0000 (17:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2022 11:25:03 +0000 (13:25 +0200)
commitaa14ecf1a8030a9663a4d97afa26b4f976f2cb3e
tree4ed5d199020c66155b97550c8cf453041f05d37c
parent3d7dcb2c5450a57f60c448f42be48fdfe456bfdf
tty: xilinx_uartps: Check clk_enable return value

If clocks are not enabled the register access may hang the system.
Check for the clock enable return value and bail out if not enabled.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Link: https://lore.kernel.org/r/20220729114748.18332-2-shubhrajyoti.datta@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c