aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorWenwen Wang <[email protected]>2019-04-17 09:18:50 -0500
committerBjorn Helgaas <[email protected]>2019-04-17 15:27:03 -0500
commitea094d53580f40c2124cef3d072b73b2425e7bfd (patch)
treef652b868ccad2640dab17f282654c2437ad40447 /tools/perf/scripts/python/exported-sql-viewer.py
parent804ee5be633f051f85270ae3f4770a5fc6cd92d5 (diff)
x86/PCI: Fix PCI IRQ routing table memory leak
In pcibios_irq_init(), the PCI IRQ routing table 'pirq_table' is first found through pirq_find_routing_table(). If the table is not found and CONFIG_PCI_BIOS is defined, the table is then allocated in pcibios_get_irq_routing_table() using kmalloc(). Later, if the I/O APIC is used, this table is actually not used. In that case, the allocated table is not freed, which is a memory leak. Free the allocated table if it is not used. Signed-off-by: Wenwen Wang <[email protected]> [bhelgaas: added Ingo's reviewed-by, since the only change since v1 was to use the irq_routing_table local variable name he suggested] Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Ingo Molnar <[email protected]> Acked-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions