mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
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:
parent
ce1d40196d
commit
9315860d05
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user