]> git.baikalelectronics.ru Git - kernel.git/commit
x86/apic/vector: Make error return value negative
authorThomas Gleixner <tglx@linutronix.de>
Sat, 8 Sep 2018 10:07:26 +0000 (12:07 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 8 Sep 2018 10:12:40 +0000 (12:12 +0200)
commit97c37c04b15b351cd3757dd120a9b9e86a7d55b3
treeef6fae9f2718dca7d22a4689f752d638b0844aea
parent3474a28899d761a9fd0d6b6f2f5985355d165905
x86/apic/vector: Make error return value negative

activate_managed() returns EINVAL instead of -EINVAL in case of
error. While this is unlikely to happen, the positive return value would
cause further malfunction at the call site.

Fixes: b1bfe017ea2d ("x86/vector: Handle managed interrupts proper")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
arch/x86/kernel/apic/vector.c