]> git.karo-electronics.de Git - linux-beck.git/commit
pci: intr-remap: Free irte memory if SPARSE_IRQ=y
authorThomas Gleixner <tglx@linutronix.de>
Mon, 4 Oct 2010 14:20:16 +0000 (16:20 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 12 Oct 2010 14:53:41 +0000 (16:53 +0200)
commit0e1e367aab873becf3e21d9b0cf46d11154ebc3f
treeb7a5e766ed9325dca8c0e62708fb082c7d10107a
parentbc5fdf9f3aad37406b3c8d635a7940cd65de0c12
pci: intr-remap: Free irte memory if SPARSE_IRQ=y

With SPARSE_IRQ=y the irte descriptors are dynamically allocated, but not
freed in free_irte().

That was ok as long as the sparse irq core was not freeing irq descriptors on
destroy_irq(). Now we leak the irte descriptor. Free it in free_irte().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/intr_remapping.c