[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1452340701-20697-1-git-send-email-ysato@users.sourceforge.jp>
Date: Sat, 9 Jan 2016 20:58:21 +0900
From: Yoshinori Sato <ysato@...rs.sourceforge.jp>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: Yoshinori Sato <ysato@...rs.sourceforge.jp>,
linux-kernel@...r.kernel.org
Subject: [PATCH] irq: action setting before irq_startup
In non shared and non threaded IRQ case.
irq_startup calling before desc->action initialize.
Signed-off-by: Yoshinori Sato <ysato@...rs.sourceforge.jp>
---
kernel/irq/manage.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 0eebaee..f6cdb63 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -1272,6 +1272,8 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new)
goto out_mask;
}
+ *old_ptr = new;
+
if (!shared) {
ret = irq_request_resources(desc);
if (ret) {
@@ -1328,8 +1330,6 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new)
irq, nmsk, omsk);
}
- *old_ptr = new;
-
irq_pm_install_action(desc, new);
/* Reset broken irq detection when installing new handler */
--
2.6.1
Powered by blists - more mailing lists