Skip to content
Commit d1ce245f authored by Yang Yingliang's avatar Yang Yingliang Committed by Vinod Koul
Browse files

phy: Sparx5 Eth SerDes: check return value after calling platform_get_resource()



It will cause null-ptr-deref if platform_get_resource() returns NULL,
we need check the return value.

Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210603051014.2674744-1-yangyingliang@huawei.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent d6e9e8e5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment