Re: Re: [PATCH] drm: mxsfb: Check NULL pointer

2021-11-04 Thread Jiasheng Jiang
On 11/3/21 8:58 AM, Marek Vasut wrote: >> As we see in the drm_connector_list_iter_next(), it could return >> NULL. In order to avoid the use of the NULL pointer, it may be >> better to check the return value. >> >> Fixes: c42001e ("drm: mxsfb: Use drm_panel_bridge") >> Signed-off-by: Jiasheng Jia

[PATCH] drm: mxsfb: Check NULL pointer

2021-11-03 Thread Jiasheng Jiang
As we see in the drm_connector_list_iter_next(), it could return NULL. In order to avoid the use of the NULL pointer, it may be better to check the return value. Fixes: c42001e ("drm: mxsfb: Use drm_panel_bridge") Signed-off-by: Jiasheng Jiang --- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 2 ++ 1 file

Re: [PATCH] drm: mxsfb: Check NULL pointer

2021-11-03 Thread Marek Vasut
On 11/3/21 8:48 AM, Jiasheng Jiang wrote: As we see in the drm_connector_list_iter_next(), it could return NULL. In order to avoid the use of the NULL pointer, it may be better to check the return value. Fixes: c42001e ("drm: mxsfb: Use drm_panel_bridge") Signed-off-by: Jiasheng Jiang --- dri