irq: Don't allow IRQ affinities to be set from userspace

msm_irqbalance balances IRQs across CPUs, which collides with SBalance.

Signed-off-by: Divyanshu-Modi <divyan.m05@gmail.com>
This commit is contained in:
Divyanshu-Modi 2024-09-25 18:45:56 +02:00 committed by Ksawlii
parent d174ab61d6
commit 6d78e5b6ae

View file

@ -141,6 +141,7 @@ static ssize_t write_irq_affinity(int type, struct file *file,
cpumask_var_t new_value;
int err;
return count;
if (!irq_can_set_affinity_usr(irq) || no_irq_affinity)
return -EIO;