[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1382090789-18177-1-git-send-email-vkale@apm.com>
Date: Fri, 18 Oct 2013 15:36:29 +0530
From: Vinayak Kale <vkale@....com>
To: linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Cc: tglx@...utronix.de, will.deacon@....com,
Vinayak Kale <vkale@....com>
Subject: [PATCH] genirq: error reporting for non-percpu interrupt in request_percpu_irq()
Return a separate error code when a non-percpu interrupt is passed to
request_percpu_irq().
Suggested-by: Will Deacon <will.deacon@....com>
Signed-off-by: Vinayak Kale <vkale@....com>
---
kernel/irq/manage.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 514bcfd..c2713ae 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -1671,10 +1671,12 @@ int request_percpu_irq(unsigned int irq, irq_handler_t handler,
return -EINVAL;
desc = irq_to_desc(irq);
- if (!desc || !irq_settings_can_request(desc) ||
- !irq_settings_is_per_cpu_devid(desc))
+ if (!desc || !irq_settings_can_request(desc))
return -EINVAL;
+ if (!irq_settings_is_per_cpu_devid(desc))
+ return -EPERM;
+
action = kzalloc(sizeof(struct irqaction), GFP_KERNEL);
if (!action)
return -ENOMEM;
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists