Re: [PATCH v2 1/1] drm/panel: fix null pointer dereference in hx83102_get_modes

2024-08-23 Thread cong yang
Hi, Charles Han 于2024年8月23日周五 16:37写道: > > In hx83102_get_modes(), the return value of drm_mode_duplicate() is > assigned to mode, which will lead to a possible NULL pointer > dereference on failure of drm_mode_duplicate(). Add a check to avoid > npd. > > Fixes: 0ef94554dc40 ("drm/panel: himax-hx

[PATCH v2 1/1] drm/panel: fix null pointer dereference in hx83102_get_modes

2024-08-23 Thread Charles Han
In hx83102_get_modes(), the return value of drm_mode_duplicate() is assigned to mode, which will lead to a possible NULL pointer dereference on failure of drm_mode_duplicate(). Add a check to avoid npd. Fixes: 0ef94554dc40 ("drm/panel: himax-hx83102: Break out as separate driver") Signed-off-by: