linux/drivers/gpu/drm/ast
Jiasheng Jiang fea3fdf975 drm/ast: potential dereference of null pointer
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
2021-12-14 09:18:28 +01:00
..
ast_dp501.c drm/ast: Fixed CVE for DP501 2021-04-27 14:12:34 +02:00
ast_dram_tables.h
ast_drv.c drm/aperture: Pass DRM driver structure instead of driver name 2021-07-01 11:11:55 +02:00
ast_drv.h drm/ast: Use managed interfaces for framebuffer write combining 2021-09-23 09:26:09 +02:00
ast_main.c drm/ast: Disable fast reset after DRAM initial 2021-07-20 11:19:57 +02:00
ast_mm.c drm/ast: Use managed interfaces for framebuffer write combining 2021-09-23 09:26:09 +02:00
ast_mode.c drm/ast: potential dereference of null pointer 2021-12-14 09:18:28 +01:00
ast_post.c drm/ast: Disable fast reset after DRAM initial 2021-07-20 11:19:57 +02:00
ast_tables.h drm/ast: Fixed 1920x1080 sync. polarity issue 2020-11-09 09:00:44 +01:00
Kconfig drm/vram: fix Kconfig 2019-09-10 08:53:08 +02:00
Makefile drm/ast: Inline ast cursor-update functions into modesetting code 2021-02-17 12:40:05 +01:00