Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1733426 > unrolled thread

[GIT pull] irq fix for 4.14

Started byThomas Gleixner <tglx@linutronix.de>
First post2017-09-17 11:40 +0200
Last post2017-09-17 11:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [GIT pull] irq fix for 4.14 Thomas Gleixner <tglx@linutronix.de> - 2017-09-17 11:40 +0200

#1733426 — [GIT pull] irq fix for 4.14

FromThomas Gleixner <tglx@linutronix.de>
Date2017-09-17 11:40 +0200
Subject[GIT pull] irq fix for 4.14
Message-ID<uqEds-67G-13@gated-at.bofh.it>
Linus,

please pull the latest irq-urgent-for-linus git tree from:

   git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-for-linus

Fix for an off by one error in a cpumask result comparison.

Thanks,

	tglx

------------------>
Thomas Gleixner (1):
      genirq: Fix cpumask check in __irq_startup_managed()


 kernel/irq/chip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index f51b7b6d2451..6fc89fd93824 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -202,7 +202,7 @@ __irq_startup_managed(struct irq_desc *desc, struct cpumask *aff, bool force)
 
 	irqd_clr_managed_shutdown(d);
 
-	if (cpumask_any_and(aff, cpu_online_mask) > nr_cpu_ids) {
+	if (cpumask_any_and(aff, cpu_online_mask) >= nr_cpu_ids) {
 		/*
 		 * Catch code which fiddles with enable_irq() on a managed
 		 * and potentially shutdown IRQ. Chained interrupt

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web