Fixes uninitialized irq_h name
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 8 Apr 2014 20:18:31 +0000 (13:18 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 8 Apr 2014 20:18:31 +0000 (13:18 -0700)
Might just remove it.

kern/arch/x86/trap.c

index d91fe22..6f968e1 100644 (file)
@@ -509,7 +509,7 @@ int register_irq(int irq, isr_t handler, void *irq_arg, uint32_t tbdf)
 {
        struct irq_handler *irq_h;
        int vector;
-       irq_h = kmalloc(sizeof(struct irq_handler), 0);
+       irq_h = kzmalloc(sizeof(struct irq_handler), 0);
        assert(irq_h);
        irq_h->dev_irq = irq;
        irq_h->tbdf = tbdf;