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: 2db1f959d9dc ("x86/vector: Handle managed interrupts proper")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org

Changed files
+1 -1
arch
x86
kernel
apic
+1 -1
arch/x86/kernel/apic/vector.c
··· 413 413 if (WARN_ON_ONCE(cpumask_empty(vector_searchmask))) { 414 414 /* Something in the core code broke! Survive gracefully */ 415 415 pr_err("Managed startup for irq %u, but no CPU\n", irqd->irq); 416 - return EINVAL; 416 + return -EINVAL; 417 417 } 418 418 419 419 ret = assign_managed_vector(irqd, vector_searchmask);