Commit 8aaa7538 authored by 蒋家盛's avatar 蒋家盛 Committed by Zheng Zengkai
Browse files

net: ethernet: lpc_eth: Handle error for clk_enable

stable inclusion
from stable-v5.10.106
commit cc7679079c7e9f6e555f17d6600cee4c00398c04
bugzilla: https://gitee.com/openeuler/kernel/issues/I573US

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cc7679079c7e9f6e555f17d6600cee4c00398c04



--------------------------------

[ Upstream commit 2169b792 ]

As the potential failure of the clk_enable(),
it should be better to check it and return error
if fails.

Fixes: b7370112 ("lpc32xx: Added ethernet driver")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYu Liao <liaoyu15@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent a5c7a439
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment