aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorJuergen Gross <[email protected]>2024-03-13 08:14:09 +0100
committerJuergen Gross <[email protected]>2024-03-17 18:57:12 +0100
commitd277f9d82802223f242cd9b60c988cfdda1d6be0 (patch)
tree84e04e64e8dd68f71e65dc4d15d472d1d3cd7c80 /tools/perf/scripts/python/mem-phys-addr.py
parent51c23bd691c0f1fb95b29731c356c6fd69925d17 (diff)
xen/events: increment refcnt only if event channel is refcounted
In bind_evtchn_to_irq_chip() don't increment the refcnt of the event channel blindly. In case the event channel is NOT refcounted, issue a warning instead. Add an additional safety net by doing the refcnt increment only if the caller has specified IRQF_SHARED in the irqflags parameter. Fixes: 9e90e58c11b7 ("xen: evtchn: Allow shared registration of IRQ handers") Signed-off-by: Juergen Gross <[email protected]> Reviewed-by: Oleksandr Tyshchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions