Skip to content
Commit 3592cfd8 authored by Zhen Ni's avatar Zhen Ni Committed by Greg Kroah-Hartman
Browse files

USB: host: isp116x: check return value after calling platform_get_resource()



[ Upstream commit 134a3408 ]

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

Signed-off-by: default avatarZhen Ni <nizhen@uniontech.com>
Link: https://lore.kernel.org/r/20220302033716.31272-1-nizhen@uniontech.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent fef451f0
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