[PATCH] drm/ast: potential dereference of null pointer

2021-12-13 Thread Jiasheng Jiang
The return value of kzalloc() needs to be checked. To avoid use of null pointer '&ast_state->base' in case of the failure of alloc. Fixes: f0adbc382b8b ("drm/ast: Allocate initial CRTC state of the correct size") Signed-off-by: Jiasheng Jiang --- drivers/gpu/drm/ast/ast_mode.c | 5 - 1 file

Re: [PATCH] drm/ast: potential dereference of null pointer

2021-12-13 Thread Thomas Zimmermann
Hi, thanks for the patch. Am 13.12.21 um 06:39 schrieb Jiasheng Jiang: he return value of kzalloc() needs to be checked. 'The' To avoid use of null pointer '&ast_state->base' in case of the failure of alloc. Fixes: f0adbc382b8b ("drm/ast: Allocate initial CRTC state of the correct size") S

[PATCH] drm/ast: potential dereference of null pointer

2021-12-12 Thread Jiasheng Jiang
he return value of kzalloc() needs to be checked. To avoid use of null pointer '&ast_state->base' in case of the failure of alloc. Fixes: f0adbc382b8b ("drm/ast: Allocate initial CRTC state of the correct size") Signed-off-by: Jiasheng Jiang --- drivers/gpu/drm/ast/ast_mode.c | 3 ++- 1 file cha