Commit 90237b16 authored by Yifan Zhang's avatar Yifan Zhang Committed by Alex Deucher
Browse files

amd/amdkfd: fix a kfd_process ref leak



This patch is to fix a kfd_prcess ref leak.

Signed-off-by: default avatarYifan Zhang <yifan1.zhang@amd.com>
Reviewed-by: default avatarPhilip Yang <Philip.Yang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5ae9de58
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1350,6 +1350,7 @@ void kfd_signal_poison_consumed_event(struct kfd_node *dev, u32 pasid)
	user_gpu_id = kfd_process_get_user_gpu_id(p, dev->id);
	if (unlikely(user_gpu_id == -EINVAL)) {
		WARN_ONCE(1, "Could not get user_gpu_id from dev->id:%x\n", dev->id);
		kfd_unref_process(p);
		return;
	}