]> Pileus Git - ~andy/linux/commitdiff
um: Add irq chip um/mask handlers
authorRichard Weinberger <richard@nod.at>
Mon, 2 Sep 2013 20:49:22 +0000 (22:49 +0200)
committerRichard Weinberger <richard@nod.at>
Sat, 7 Sep 2013 08:57:19 +0000 (10:57 +0200)
These handlers are not optional and need in our case
dummy implementions to avoid NULL pointer bugs within
the irq core code.

Reported-and-tested-by: Toralf Foester <toralf.foerster@gmx.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/kernel/irq.c

index 36e12f0cefd5e95a688df0c56e0390377ded2028..1d8505b1e2908289b49961019b885908d312fed8 100644 (file)
@@ -337,6 +337,8 @@ static struct irq_chip normal_irq_type = {
        .irq_disable = dummy,
        .irq_enable = dummy,
        .irq_ack = dummy,
+       .irq_mask = dummy,
+       .irq_unmask = dummy,
 };
 
 static struct irq_chip SIGVTALRM_irq_type = {
@@ -344,6 +346,8 @@ static struct irq_chip SIGVTALRM_irq_type = {
        .irq_disable = dummy,
        .irq_enable = dummy,
        .irq_ack = dummy,
+       .irq_mask = dummy,
+       .irq_unmask = dummy,
 };
 
 void __init init_IRQ(void)