genirq/proc: Change the return value for set affinity permission error
authorJeff Xie <jeff.xie@linux.dev>
Mon, 26 Aug 2024 14:58:05 +0000 (22:58 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 29 Aug 2024 14:42:06 +0000 (16:42 +0200)
commiteb29369fa543e7d5557c19ebecf072244bb14815
treebab8972a0540d4e974bae6134919c5846febeb14
parent9012f84e1c5b653c282b7a6cca81454ecf7c5a0a
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
kernel/irq/proc.c