linux-stable/drivers/gpu/drm/sprd
Kevin Tang b6b2b9560e drm/sprd: check the platform_get_resource() return value
[ Upstream commit 73792e6e66 ]

platform_get_resource() may fail and return NULL, so check it's value
before using it.

Reported-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Kevin Tang <kevin3.tang@gmail.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/all/20220117084156.9338-1-kevin3.tang@gmail.com

v1 -> v2:
- new patch

Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-13 19:27:15 +02:00
..
Kconfig drm/sprd: add Unisoc's drm mipi dsi&dphy driver 2021-12-10 12:38:10 +01:00
Makefile drm/sprd: add Unisoc's drm mipi dsi&dphy driver 2021-12-10 12:38:10 +01:00
megacores_pll.c drm/sprd: add Unisoc's drm mipi dsi&dphy driver 2021-12-10 12:38:10 +01:00
sprd_dpu.c drm/sprd: check the platform_get_resource() return value 2022-04-13 19:27:15 +02:00
sprd_dpu.h
sprd_drm.c drm/sprd: fix potential NULL dereference 2022-04-13 19:27:15 +02:00
sprd_drm.h drm/sprd: add Unisoc's drm mipi dsi&dphy driver 2021-12-10 12:38:10 +01:00
sprd_dsi.c drm/sprd: check the platform_get_resource() return value 2022-04-13 19:27:15 +02:00
sprd_dsi.h drm/sprd: add Unisoc's drm mipi dsi&dphy driver 2021-12-10 12:38:10 +01:00