Skip to content
Commit 3a2390c6 authored by Hui Tang's avatar Hui Tang Committed by Philipp Zabel
Browse files

reset: uniphier-glue: Fix possible null-ptr-deref



It will cause null-ptr-deref when resource_size(res) invoked,
if platform_get_resource() returns NULL.

Fixes: 499fef09 ("reset: uniphier: add USB3 core reset control")
Signed-off-by: default avatarHui Tang <tanghui20@huawei.com>
Reviewed-by: default avatarKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/20221114004958.258513-1-tanghui20@huawei.com


Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent 13678f3f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment