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 <[email protected]> Reviewed-by: Philip Yang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 5ae9de5 commit 90237b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)