acrn-kernel/drivers/reset
Hui Tang 633bad3dc8 reset: uniphier-glue: Fix possible null-ptr-deref
[ Upstream commit 3a2390c677 ]

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

Fixes: 499fef09a3 ("reset: uniphier: add USB3 core reset control")
Signed-off-by: Hui Tang <tanghui20@huawei.com>
Reviewed-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/20221114004958.258513-1-tanghui20@huawei.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-01 08:34:05 +01:00
..
hisilicon
sti
tegra
Kconfig
Makefile
core.c
reset-a10sr.c
reset-ath79.c
reset-axs10x.c
reset-bcm6345.c
reset-berlin.c
reset-brcmstb-rescal.c
reset-brcmstb.c
reset-hsdk.c
reset-imx7.c
reset-intel-gw.c
reset-k210.c
reset-lantiq.c
reset-lpc18xx.c
reset-meson-audio-arb.c
reset-meson.c
reset-microchip-sparx5.c
reset-mpfs.c
reset-npcm.c
reset-oxnas.c
reset-pistachio.c
reset-qcom-aoss.c
reset-qcom-pdc.c
reset-raspberrypi.c
reset-rzg2l-usbphy-ctrl.c
reset-scmi.c
reset-simple.c
reset-socfpga.c
reset-starfive-jh7100.c
reset-sunplus.c
reset-sunxi.c
reset-ti-sci.c
reset-ti-syscon.c
reset-tn48m.c
reset-tps380x.c
reset-uniphier-glue.c
reset-uniphier.c
reset-zynq.c
reset-zynqmp.c