On 07/10/2023 05:03, Ma Ke wrote:
In radeon_fp_native_mode(), the return value of drm_mode_duplicate()
Wrong function, it should be tpg110_get_modes()
Thanks,
Neil
is assigned to mode, which will lead to a NULL pointer dereference
on failure of drm_mode_duplicate(). Add a check to avoid npd.
In radeon_fp_native_mode(), the return value of drm_mode_duplicate()
is assigned to mode, which will lead to a NULL pointer dereference
on failure of drm_mode_duplicate(). Add a check to avoid npd.
Signed-off-by: Ma Ke
---
drivers/gpu/drm/panel/panel-tpo-tpg110.c | 2 ++
1 file changed, 2 insert