]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
serial: tegra: handle clk prepare error in tegra_uart_hw_init()
authorYi Yang <yiyang13@huawei.com>
Thu, 17 Aug 2023 10:54:06 +0000 (18:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Sep 2023 08:46:58 +0000 (10:46 +0200)
commit73e355bb1c25f57bd727914e31be296741abce30
treeaf2267c27d577cfc8f27355b8d34c3e446f521f2
parent4ea46b479a00dd232f0dbc81fdc27f9330ecb3ad
serial: tegra: handle clk prepare error in tegra_uart_hw_init()

[ Upstream commit 5abd01145d0cc6cd1b7c2fe6ee0b9ea0fa13671e ]

In tegra_uart_hw_init(), the return value of clk_prepare_enable() should
be checked since it might fail.

Fixes: e9ea096dd225 ("serial: tegra: add serial driver")
Signed-off-by: Yi Yang <yiyang13@huawei.com>
Link: https://lore.kernel.org/r/20230817105406.228674-1-yiyang13@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/serial-tegra.c