summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorFuad Tabba <fuad.tabba@linux.dev>2026-09-08 15:26:31 +0100
committerThomas Gleixner <tglx@kernel.org>2026-10-15 11:50:47 +0200
commit5a9d62555e7164ec79a5fe70153d79cf1fdfd614 (patch)
treeaf5ebd4e3a984bd6ee06f0fc98605a432cc4cb9b /scripts/Makefile.thinlto
parent0773b76611e9c596c825076d422d372697da9940 (diff)
downloadlinux-5a9d62555e7164ec79a5fe70153d79cf1fdfd614.tar.gz
linux-5a9d62555e7164ec79a5fe70153d79cf1fdfd614.zip
irqchip/gic-v3-its: Don't clamp nvecs to zero when id_bits is 32
GITS_TYPER_IDBITS is five bits, so id_bits reaches 32 and min_t(unsigned int, ...) truncates BIT(32) to 0. nvecs becomes 0, its_lpi_alloc() rejects that, and its_msi_prepare() returns -ENOMEM. On 32-bit ARM the shift is undefined instead. The clamp is correct for every value below the maximum, so only that one value is affected. Fixes: ce9e40a9a5e5c ("irqchip/gic-v3-its: Limit number of per-device MSIs to the range the ITS supports") Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Reviewed-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Zenghui Yu (Huawei) <zenghui.yu@linux.dev> Reviewed-by: Radu Rendec <radu@rendec.net> Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20260908142632.2795308-3-fuad.tabba@linux.dev
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions