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

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

Merge "genirq: Don't allow user space to set IRQ affinity to isolated CPUs"

parents 4e361bef 7d5479c9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -114,6 +114,11 @@ static ssize_t write_irq_affinity(int type, struct file *file,
		goto free_cpumask;
	}

	if (cpumask_subset(new_value, cpu_isolated_mask)) {
		err = -EINVAL;
		goto free_cpumask;
	}

	/*
	 * Do not allow disabling IRQs completely - it's a too easy
	 * way to make the system unusable accidentally :-) At least