OrangePi_CM5/drivers/gpu/drm/ast
Jiasheng Jiang 96bc86cac0 drm/ast: potential dereference of null pointer
[ Upstream commit fea3fdf975dd9f3e5248afaab8fe023db313f005 ]

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: f0adbc382b ("drm/ast: Allocate initial CRTC state of the correct size")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20211214014126.2211535-1-jiasheng@iscas.ac.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-12-22 09:30:54 +01:00
..
Kconfig
…
Makefile
…
ast_cursor.c
…
ast_dp501.c drm/ast: Fixed CVE for DP501 2021-07-19 09:44:36 +02:00
ast_dram_tables.h
…
ast_drv.c drm/ast: fix memory leak when unload the driver 2021-05-11 14:47:22 +02:00
ast_drv.h drm/ast: Fixed CVE for DP501 2021-07-19 09:44:36 +02:00
ast_main.c Revert "drm/ast: Remove reference to struct drm_device.pdev" 2021-07-20 16:05:37 +02:00
ast_mm.c
…
ast_mode.c drm/ast: potential dereference of null pointer 2021-12-22 09:30:54 +01:00
ast_post.c
…
ast_tables.h
…