mirror_ubuntu-kernels/drivers/gpu/drm/amd
Ma Ke cd90511557 drm/amdgpu/vkms: fix a possible null pointer dereference
In amdgpu_vkms_conn_get_modes(), the return value of drm_cvt_mode()
is assigned to mode, which will lead to a NULL pointer dereference
on failure of drm_cvt_mode(). Add a check to avoid null pointer
dereference.

Signed-off-by: Ma Ke <make_ruc2021@163.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-10-13 11:36:25 -04:00
..
acp
amdgpu drm/amdgpu/vkms: fix a possible null pointer dereference 2023-10-13 11:36:25 -04:00
amdkfd drm/amdkfd: get doorbell's absolute offset based on the db_size 2023-10-09 17:02:34 -04:00
amdxcp drm/amdxcp: fix Makefile to build amdxcp module 2023-06-09 12:32:53 -04:00
display Revert "drm/amd/display: Skip entire amdgpu_dm build if !CONFIG_DRM_AMD_DC" 2023-10-13 11:31:42 -04:00
include drm/amd/swsmu: update smu v14_0_0 header files and metrics table 2023-10-13 11:36:17 -04:00
pm drm/amd/swsmu: update smu v14_0_0 header files and metrics table 2023-10-13 11:36:17 -04:00