diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-06-03 13:10:14 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-06-03 11:18:19 +0530 |
commit | d1ce245fe409241ed6168c835a5b55ef52bdb6a9 (patch) | |
tree | 6318263c9cde18111317c0806131e316716eac8d /drivers/bus | |
parent | d6e9e8e5dd53419814eb54803b4ab3682b55cebe (diff) | |
download | linux-d1ce245fe409241ed6168c835a5b55ef52bdb6a9.tar.gz |
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: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210603051014.2674744-1-yangyingliang@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/bus')
0 files changed, 0 insertions, 0 deletions