Skip to content

Commit 90237b1

Browse files
yifancomalexdeucher
authored andcommitted
amd/amdkfd: fix a kfd_process ref leak
This patch is to fix a kfd_prcess ref leak. Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com> Reviewed-by: Philip Yang <Philip.Yang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 5ae9de5 commit 90237b1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/amd/amdkfd/kfd_events.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,6 +1350,7 @@ void kfd_signal_poison_consumed_event(struct kfd_node *dev, u32 pasid)
13501350
user_gpu_id = kfd_process_get_user_gpu_id(p, dev->id);
13511351
if (unlikely(user_gpu_id == -EINVAL)) {
13521352
WARN_ONCE(1, "Could not get user_gpu_id from dev->id:%x\n", dev->id);
1353+
kfd_unref_process(p);
13531354
return;
13541355
}
13551356

0 commit comments

Comments
 (0)