linux-stable/drivers/gpu/drm/vkms
Colin Ian King 85dd1dd6e2 drm/vkms: Fix missing kmalloc allocation failure check
Currently the kmalloc allocation for config is not being null
checked and could potentially lead to a null pointer dereference.
Fix this by adding the missing null check.

Addresses-Coverity: ("Dereference null return value")
Fixes: 2df7af93fd ("drm/vkms: Add vkms_config type")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Sumera Priyadarsini <sylphrenadin@gmail.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210115130911.71073-1-colin.king@canonical.com
2021-01-15 17:45:07 -03:00
..
Makefile drm/vkms: Switch to shmem helpers 2020-10-15 23:37:58 +02:00
vkms_composer.c drm/vkms: Switch to shmem helpers 2020-10-15 23:37:58 +02:00
vkms_crtc.c drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
vkms_drv.c drm/vkms: Fix missing kmalloc allocation failure check 2021-01-15 17:45:07 -03:00
vkms_drv.h drm/vkms: Add support for writeback module 2021-01-12 17:16:25 -03:00
vkms_output.c drm/vkms: Add support for writeback module 2021-01-12 17:16:25 -03:00
vkms_plane.c drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends 2020-11-09 09:19:24 +01:00
vkms_writeback.c drm: Pass the full state to connectors atomic functions 2020-11-20 12:23:53 +01:00