drm/amdkfd: fix NULL check mistake for process smi event
authorEric Huang <jinhuieric.huang@amd.com>
Mon, 14 Apr 2025 14:45:12 +0000 (10:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Apr 2025 14:49:45 +0000 (10:49 -0400)
commit9315860d05aa2604045a5d8f874cf1d36a70da89
treee81c0ad565d586229a480dc4c35d7e7a24b56d2a
parentce1d40196de5b02ac643bbf36551cf96d0e55852
drm/amdkfd: fix NULL check mistake for process smi event

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

Fixes: 4172b556fd5b ("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>
drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c