Skip to content

Commit 96b62c8

Browse files
Dennis Lialexdeucher
authored andcommitted
drm/amdkfd: fix a resource leakage issue
The function kfd_lookup_process_by_pasid will increase the reference count of kfd_process object, its caller should call kfd_unref_process to decrease the reference count. Otherwise resource leakage will happen. Signed-off-by: Dennis Li <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent e552ee4 commit 96b62c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,4 +1088,6 @@ void kfd_signal_poison_consumed_event(struct kfd_dev *dev, u32 pasid)
10881088

10891089
/* user application will handle SIGBUS signal */
10901090
send_sig(SIGBUS, p->lead_thread, 0);
1091+
1092+
kfd_unref_process(p);
10911093
}

0 commit comments

Comments
 (0)