diff options
author | Jon Hunter <[email protected]> | 2016-06-21 10:23:22 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2016-06-23 10:21:06 +0200 |
commit | d16dcd3d18759eb955e0325572d07457f93494f5 (patch) | |
tree | 5edf1ace27035c1eafd9c9eb7c61bff8bef84065 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 30ce0350381351646ef86b64e6d3840b3869833b (diff) |
irqdomain: Fix disposal of mappings for interrupt hierarchies
The function irq_create_of_mapping() is used to create an interrupt
mapping. However, depending on whether the irqdomain, to which the
interrupt belongs, is part of a hierarchy, determines whether the
mapping is created via calling irq_domain_alloc_irqs() or
irq_create_mapping().
To dispose of the interrupt mapping, drivers call irq_dispose_mapping().
However, this function does not check to see if the irqdomain is part
of a hierarchy or not and simply assumes that it was mapped via calling
irq_create_mapping() so calls irq_domain_disassociate() to unmap the
interrupt.
Fix this by checking to see if the irqdomain is part of a hierarchy and
if so call irq_domain_free_irqs() to free/unmap the interrupt.
Signed-off-by: Jon Hunter <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Jiang Liu <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions