drm/amdkfd: Fix variable dereferenced before NULL check in 'kfd_dbg_trap_device_snaps...
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Fri, 5 Jan 2024 05:57:48 +0000 (11:27 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Jan 2024 23:35:37 +0000 (18:35 -0500)
commit81d4b970684554dbd8faff90fbcd600b86847a68
treeffe65fe477320c1b27742dfbb7790e8b52ba5f09
parent30df05fb74f6392bf53b4094a184573e5c75105e
drm/amdkfd: Fix variable dereferenced before NULL check in 'kfd_dbg_trap_device_snapshot()'

Fixes the below:
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_debug.c:1024 kfd_dbg_trap_device_snapshot() warn: variable dereferenced before check 'entry_size' (see line 1021)

Cc: Felix Kuehling <Felix.Kuehling@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_debug.c