Re: [PATCH] drm/edid: fix a possible null pointer dereference

2023-10-11 Thread Jani Nikula
On Wed, 11 Oct 2023, Ma Ke wrote: > In drm_mode_std(), the return value of drm_gtf_mode(), > drm_gtf_mode() and drm_cvt_mode() is assigned to mode, > which will lead to a NULL pointer dereference on failure > of drm_gtf_mode(), drm_gtf_mode() and drm_cvt_mode(). > Add a check to avoid null point

[PATCH] drm/edid: fix a possible null pointer dereference

2023-10-10 Thread Ma Ke
In drm_mode_std(), the return value of drm_gtf_mode(), drm_gtf_mode() and drm_cvt_mode() is assigned to mode, which will lead to a NULL pointer dereference on failure of drm_gtf_mode(), drm_gtf_mode() and drm_cvt_mode(). Add a check to avoid null point dereference. Signed-off-by: Ma Ke ---