diff options
author | Steven Price <[email protected]> | 2024-10-21 11:41:05 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2024-10-21 15:49:15 +0200 |
commit | bc88d44bd7e45b992cf8c2c2ffbc7bb3e24db4a7 (patch) | |
tree | 4ace86c2dd250db40edf1786315f9d84f2d2bf96 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 010863f40fc3c3650eded3d5ebd7af7521b3c3fa (diff) |
irqchip/gic-v3-its: Fix over allocation in itt_alloc_pool()
itt_alloc_pool() calls its_alloc_pages_node() to allocate an individual
page to add to the pool (for allocations <PAGE_SIZE). However the final
argument of its_alloc_pages_node() is the page order not the number of
pages. Currently it allocates two pages and leaks the second page.
Fix it by passing 0 instead (1 << 0 = 1 page).
Fixes: b08e2f42e86b ("irqchip/gic-v3-its: Share ITS tables with a non-trusted hypervisor")
Reported-by: Shanker Donthineni <[email protected]>
Signed-off-by: Steven Price <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Closes: https://lore.kernel.org/r/ed65312a-245c-4fa5-91ad-5d620cab7c6b%40nvidia.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions