]> 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)
commit508b9fb05244e18ebbac14e79e8fd8b428f61d03
tree4ed5d199020c66155b97550c8cf453041f05d37c
parent34a3249ab33a1690f58cd6e91a0208887337d3e0
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