Skip to content

Commit 8d0fc43

Browse files
yifancomsmb49
authored andcommitted
amd/amdkfd: fix a kfd_process ref leak
BugLink: https://bugs.launchpad.net/bugs/2121266 [ Upstream commit 90237b16ec1d7afa16e2173cc9a664377214cdd9 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Noah Wager <noah.wager@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
1 parent 4872026 commit 8d0fc43

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
@@ -1331,6 +1331,7 @@ void kfd_signal_poison_consumed_event(struct kfd_node *dev, u32 pasid)
13311331
user_gpu_id = kfd_process_get_user_gpu_id(p, dev->id);
13321332
if (unlikely(user_gpu_id == -EINVAL)) {
13331333
WARN_ONCE(1, "Could not get user_gpu_id from dev->id:%x\n", dev->id);
1334+
kfd_unref_process(p);
13341335
return;
13351336
}
13361337

0 commit comments

Comments
 (0)