Merge "genirq: Don't allow user space to set IRQ affinity to isolated CPUs"
This commit is contained in:
commit
0ff3f2c2af
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue