From: Steven Price Date: Mon, 21 Oct 2024 10:41:05 +0000 (+0100) Subject: irqchip/gic-v3-its: Fix over allocation in itt_alloc_pool() X-Git-Tag: v6.13-rc1~173^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bc88d44bd7e45b992cf8c2c2ffbc7bb3e24db4a7;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Steven Price Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/all/1f6e19c4-1fb9-43ab-a8a2-a465c9cff84b@arm.com Closes: https://lore.kernel.org/r/ed65312a-245c-4fa5-91ad-5d620cab7c6b%40nvidia.com --- diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index be77f927110de..395961fb21809 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -261,7 +261,7 @@ static void *itt_alloc_pool(int node, int size) if (addr) break; - page = its_alloc_pages_node(node, GFP_KERNEL | __GFP_ZERO, 1); + page = its_alloc_pages_node(node, GFP_KERNEL | __GFP_ZERO, 0); if (!page) break;