Files
linux-stable-mirror/drivers
Xiang Yang e02a2693ae drm/exynos: fix a potential error pointer dereference
[ Upstream commit 73bf1c9ae6 ]

Smatch reports the warning below:
drivers/gpu/drm/exynos/exynos_hdmi.c:1864 hdmi_bind()
error: 'crtc' dereferencing possible ERR_PTR()

The return value of exynos_drm_crtc_get_by_type maybe ERR_PTR(-ENODEV),
which can not be used directly. Fix this by checking the return value
before using it.

Signed-off-by: Xiang Yang <xiangyang3@huawei.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 14:52:28 -08:00
..
2023-09-19 12:22:47 +02:00
2023-11-20 11:08:27 +01:00
2023-11-20 11:08:22 +01:00
2023-12-13 18:36:31 +01:00