summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-07-05 16:56:14 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-07-05 16:56:14 -0700
commit549f11c9f0f35bbd131e6205025626873b4a6fdb (patch)
tree1a3d506c923a6a077a6e973e2c4cf9111f40f0b0 /kernel
parente1a08b855f56d6528e7f85aae9ca8123f4c3ae04 (diff)
parent8844aad89ed61545b4db6a3467e1b21ca1c49460 (diff)
downloadop-kernel-dev-549f11c9f0f35bbd131e6205025626873b4a6fdb.zip
op-kernel-dev-549f11c9f0f35bbd131e6205025626873b4a6fdb.tar.gz
Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull irq fixes from Thomas Gleixner: "A few minor fixlets in ARM SoC irq drivers and a fix for a memory leak which I introduced in the last round of cleanups :(" * 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: genirq: Fix memory leak when calling irq_free_hwirqs() irqchip: spear_shirq: Fix interrupt offset irqchip: brcmstb-l2: Level-2 interrupts are edge sensitive irqchip: armada-370-xp: Mask all interrupts during initialization.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/irq/irqdesc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index 7339e42..1487a12 100644
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -455,9 +455,9 @@ EXPORT_SYMBOL_GPL(irq_alloc_hwirqs);
*/
void irq_free_hwirqs(unsigned int from, int cnt)
{
- int i;
+ int i, j;
- for (i = from; cnt > 0; i++, cnt--) {
+ for (i = from, j = cnt; j > 0; i++, j--) {
irq_set_status_flags(i, _IRQ_NOREQUEST | _IRQ_NOPROBE);
arch_teardown_hwirq(i);
}
OpenPOWER on IntegriCloud