Re: [PATCH -next] drm/exynos: fix a potential error pointer dereference

2023-08-28 Thread Inki Dae
2023년 8월 12일 (토) 오후 4:17, Xiang Yang 님이 작성: > From: Xiang Yang > > 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

[PATCH -next] drm/exynos: fix a potential error pointer dereference

2023-08-14 Thread Xiang Yang
From: Xiang Yang 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 be