mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 22:22:08 +02:00
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>
This commit is contained in:
parent
00cace8b54
commit
7ecc7329c4
|
|
@ -1777,7 +1777,7 @@ static void kfd_fill_cache_non_crat_info(struct kfd_topology_device *dev, struct
|
|||
struct amdgpu_cu_info *cu_info = &kdev->adev->gfx.cu_info;
|
||||
struct amdgpu_gfx_config *gfx_info = &kdev->adev->gfx.config;
|
||||
int gpu_processor_id;
|
||||
struct kfd_cache_properties *props_ext;
|
||||
struct kfd_cache_properties *props_ext = NULL;
|
||||
int num_of_entries = 0;
|
||||
int num_of_cache_types = 0;
|
||||
struct kfd_gpu_cache_info cache_info[KFD_MAX_CACHE_TYPES];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user