mirror of
https://github.com/torvalds/linux.git
synced 2026-03-14 05:36:15 +01:00
genirq/proc: Change the return value for set affinity permission error
Currently, when the affinity of an irq cannot be set due to lack of permission, the write_irq_affinity() returns the error code -EIO. Change the return value to -EPERM as that reflects the cause of error correctly. Signed-off-by: Jeff Xie <jeff.xie@linux.dev> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/20240826145805.5938-1-jeff.xie@linux.dev
This commit is contained in:
parent
9012f84e1c
commit
eb29369fa5
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ static ssize_t write_irq_affinity(int type, struct file *file,
|
|||
int err;
|
||||
|
||||
if (!irq_can_set_affinity_usr(irq) || no_irq_affinity)
|
||||
return -EIO;
|
||||
return -EPERM;
|
||||
|
||||
if (!zalloc_cpumask_var(&new_value, GFP_KERNEL))
|
||||
return -ENOMEM;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue