drm/amdkfd: fix NULL check mistake for process smi event

The mistake will lead to NULL kernel oops, so fix it.

Fixes: 4172b556fd ("drm/amdkfd: add smi events for process start and end")
Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
Reviewed-by: Kent Russell <kent.russell@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Eric Huang 2025-04-14 10:45:12 -04:00 committed by Alex Deucher
parent ce1d40196d
commit 9315860d05

View File

@ -350,7 +350,7 @@ void kfd_smi_event_process(struct kfd_process_device *pdd, bool start)
struct amdgpu_task_info *task_info;
struct amdgpu_vm *avm;
if (pdd->drm_priv)
if (!pdd->drm_priv)
return;
avm = drm_priv_to_vm(pdd->drm_priv);