Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

irqchip/gic-v5: Fix loop in gicv5_its_create_itt_two_level() cleanup path

The "i" variable in gicv5_its_create_itt_two_level() needs to be signed
otherwise it can cause a forever loop in the function's cleanup path.

[ lpieralisi: Reworded commit message ]

Fixes: 57d72196dfc8 ("irqchip/gic-v5: Add GICv5 ITS support")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Link: https://lore.kernel.org/all/20250908082745.113718-3-lpieralisi@kernel.org

authored by

Dan Carpenter and committed by
Thomas Gleixner
bfcd1fda 5a5c48e8

+2 -2
+2 -2
drivers/irqchip/irq-gic-v5-its.c
··· 191 191 unsigned int num_events) 192 192 { 193 193 unsigned int l1_bits, l2_bits, span, events_per_l2_table; 194 - unsigned int i, complete_tables, final_span, num_ents; 194 + unsigned int complete_tables, final_span, num_ents; 195 195 __le64 *itt_l1, *itt_l2, **l2ptrs; 196 - int ret; 196 + int i, ret; 197 197 u64 val; 198 198 199 199 ret = gicv5_its_l2sz_to_l2_bits(itt_l2sz);