[PATCH 1/2] Add irq_free_host() to free an irq_host

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu May 15 16:55:12 EST 2008


On Thu, 2008-05-08 at 14:23 +1000, Michael Ellerman wrote:
> +void irq_free_host(struct irq_host *host)
> +{
> +       /* If it's still very early in boot we can't free, oh well. */
> +       if (mem_init_done)
> +               kfree(host);
> +}

Hrm... that means that a host that was allocated before mem_init_done
and freed later will call kfree on memory obtained from bootmem... no
good.

In which case do we need to free and irq host other than failure in
irq_alloc_host ?

Cheers,
Ben.





More information about the Linuxppc-dev mailing list