Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 101fee63 authored by Moses Reuben's avatar Moses Reuben Committed by Oded Gabbay
Browse files

drm/amdkfd: send SIGSEGV to process upon KFD_EVENT_TYPE_MEMORY

parent e47cb828
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -850,6 +850,13 @@ static void lookup_events_by_type_and_signal(struct kfd_process *p,
				ev->memory_exception_data = *ev_data;
		}

	if (type == KFD_EVENT_TYPE_MEMORY) {
		dev_warn(kfd_device,
			"Sending SIGSEGV to HSA Process with PID %d ",
				p->lead_thread->pid);
		send_sig(SIGSEGV, p->lead_thread, 0);
	}

	/* Send SIGTERM no event of type "type" has been found*/
	if (send_signal) {
		if (send_sigterm) {