Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdkfd: Uninitialized pointer read

This a pointer that is being passed into other functions, so it is best to
initialize it to NULL prior.

Signed-off-by: Andrew Martin <Andrew.Martin@amd.com>
Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Andrew Martin and committed by
Alex Deucher
7ecc7329 00cace8b

+1 -1
+1 -1
drivers/gpu/drm/amd/amdkfd/kfd_topology.c
··· 1777 1777 struct amdgpu_cu_info *cu_info = &kdev->adev->gfx.cu_info; 1778 1778 struct amdgpu_gfx_config *gfx_info = &kdev->adev->gfx.config; 1779 1779 int gpu_processor_id; 1780 - struct kfd_cache_properties *props_ext; 1780 + struct kfd_cache_properties *props_ext = NULL; 1781 1781 int num_of_entries = 0; 1782 1782 int num_of_cache_types = 0; 1783 1783 struct kfd_gpu_cache_info cache_info[KFD_MAX_CACHE_TYPES];