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

Commit fc83624a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "perf: duplicate deletion of perf event"

parents 44729256 a82f1b62
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -7348,6 +7348,9 @@ SYSCALL_DEFINE5(perf_event_open,
	if (err)
		return err;

	if (attr.constraint_duplicate || attr.__reserved_1)
		return -EINVAL;

	if (!attr.exclude_kernel) {
		if (perf_paranoid_kernel() && !capable(CAP_SYS_ADMIN))
			return -EACCES;