linux-uconsole/drivers/gpu/drm/ast
Jiasheng Jiang 96bc86cac0 drm/ast: potential dereference of null pointer
[ Upstream commit fea3fdf975 ]

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
..
ast_cursor.c drm: ast: fix double __iomem sparse warning 2020-08-19 09:14:40 +02:00
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 drm/ast: Embed struct drm_device in struct ast_private 2020-08-03 09:04:28 +02:00
ast_mode.c drm/ast: potential dereference of null pointer 2021-12-22 09:30:54 +01:00
ast_post.c drm/ast: Embed struct drm_device in struct ast_private 2020-08-03 09:04:28 +02:00
ast_tables.h
Kconfig drm/vram: fix Kconfig 2019-09-10 08:53:08 +02:00
Makefile drm/ast: Rename ast_ttm.c to ast_mm.c 2020-07-20 09:16:05 +02:00