genirq/ipi: Fixup checks against nr_cpu_ids
authorAlexey Dobriyan <adobriyan@gmail.com>
Sat, 19 Aug 2017 09:57:51 +0000 (12:57 +0300)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 20 Aug 2017 08:49:05 +0000 (10:49 +0200)
commit8fbbe2d7cc478d1544f41f2271787c993c23a4f6
tree5216664c8a0de1fab6a27d5400042efc132d6901
parente8f241893dfbbebe2813c01eac54f263e6a5e59c
genirq/ipi: Fixup checks against nr_cpu_ids

Valid CPU ids are [0, nr_cpu_ids-1] inclusive.

Fixes: 3b8e29a82dd1 ("genirq: Implement ipi_send_mask/single()")
Fixes: f9bce791ae2a ("genirq: Add a new function to get IPI reverse mapping")
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/20170819095751.GB27864@avx2
kernel/irq/ipi.c