]> www.infradead.org Git - users/jedix/linux-maple.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)
commit957e8c047bf25bd24271ab049f06dc47f382973f
tree4ed5d199020c66155b97550c8cf453041f05d37c
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
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