debuggers.hg

diff xen/arch/x86/irq.c @ 3650:beb0887c54bc

bitkeeper revision 1.1159.238.1 (4200c8d8KsGlaM3w6o3y4GHhK1jKjg)

A typesafe allocator submitted by Rusty Russel with trivial renames by me.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au> (authored)
Signed-off-by: ian.pratt@cl.cam.ac.uk
author iap10@labyrinth.cl.cam.ac.uk
date Wed Feb 02 12:34:32 2005 +0000 (2005-02-02)
parents 75f82adfcc90
children 0ef6e8e6e85d
line diff
     1.1 --- a/xen/arch/x86/irq.c	Wed Feb 02 00:26:53 2005 +0000
     1.2 +++ b/xen/arch/x86/irq.c	Wed Feb 02 12:34:32 2005 +0000
     1.3 @@ -260,7 +260,7 @@ int pirq_guest_bind(struct exec_domain *
     1.4              goto out;
     1.5          }
     1.6  
     1.7 -        action = xmalloc(sizeof(irq_guest_action_t));
     1.8 +        action = xmalloc(irq_guest_action_t);
     1.9          if ( (desc->action = (struct irqaction *)action) == NULL )
    1.10          {
    1.11              DPRINTK("Cannot bind IRQ %d to guest. Out of memory.\n", irq);