diff options
-rw-r--r-- | kernel/irq/manage.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 4600f877c292..8a22039a90ba 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -737,15 +737,13 @@ int request_irq(unsigned int irq, irq_handler_t handler, | |||
737 | if (!handler) | 737 | if (!handler) |
738 | return -EINVAL; | 738 | return -EINVAL; |
739 | 739 | ||
740 | action = kmalloc(sizeof(struct irqaction), GFP_KERNEL); | 740 | action = kzalloc(sizeof(struct irqaction), GFP_KERNEL); |
741 | if (!action) | 741 | if (!action) |
742 | return -ENOMEM; | 742 | return -ENOMEM; |
743 | 743 | ||
744 | action->handler = handler; | 744 | action->handler = handler; |
745 | action->flags = irqflags; | 745 | action->flags = irqflags; |
746 | cpus_clear(action->mask); | ||
747 | action->name = devname; | 746 | action->name = devname; |
748 | action->next = NULL; | ||
749 | action->dev_id = dev_id; | 747 | action->dev_id = dev_id; |
750 | 748 | ||
751 | retval = __setup_irq(irq, desc, action); | 749 | retval = __setup_irq(irq, desc, action); |