diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c index bc28496fd196d587d41ec18e010dfe1ecd9b6f9c..35d4cb28777119b0de913717f1295511afb2a493 100644 --- a/arch/x86/kernel/irq.c +++ b/arch/x86/kernel/irq.c @@ -401,8 +401,8 @@ int check_irq_vectors_for_cpu_disable(void) for (vector = FIRST_EXTERNAL_VECTOR; vector < first_system_vector; vector++) { if (!test_bit(vector, used_vectors) && - per_cpu(vector_irq, cpu)[vector] < 0) - count++; + per_cpu(vector_irq, cpu)[vector] <= VECTOR_UNDEFINED) + count++; } }