Re: [PATCH v2] drm: mali-dp: potential dereference of null pointer

2021-12-14 Thread Liviu Dudau
Hi Jiasheng, On Tue, Dec 14, 2021 at 08:51:10PM +0800, Jiasheng Jiang wrote: > The return value of kzalloc() needs to be checked. > To avoid use of null pointer '&state->base' in case of the > failure of alloc. > > Fixes: 99665d072183 ("drm: mali-dp: add malidp_crtc_state struct") > Signed-off-by

[PATCH v2] drm: mali-dp: potential dereference of null pointer

2021-12-14 Thread Jiasheng Jiang
The return value of kzalloc() needs to be checked. To avoid use of null pointer '&state->base' in case of the failure of alloc. Fixes: 99665d072183 ("drm: mali-dp: add malidp_crtc_state struct") Signed-off-by: Jiasheng Jiang Reported-by: Brian Starkey --- Changelog: v1 -> v2 *Change 1. Add r-p