Re: [PATCH v2] drm/panel/panel-tpo-tpg110: fix a possible null pointer dereference

2023-10-10 Thread Neil Armstrong
Hi, On Mon, 09 Oct 2023 17:04:46 +0800, Ma Ke wrote: > In tpg110_get_modes(), 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. > > Thanks, Applied to https://anongit.free

Re: [PATCH v2] drm/panel/panel-tpo-tpg110: fix a possible null pointer dereference

2023-10-09 Thread neil . armstrong
On 09/10/2023 11:04, Ma Ke wrote: In tpg110_get_modes(), 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

[PATCH v2] drm/panel/panel-tpo-tpg110: fix a possible null pointer dereference

2023-10-09 Thread Ma Ke
In tpg110_get_modes(), 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 insertions(