aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorJinjie Ruan <[email protected]>2024-10-26 14:36:39 +0800
committerThomas Gleixner <[email protected]>2024-10-27 10:40:47 +0100
commit5f994f534120f47432092fb36f5cb0c7a80ed2bf (patch)
treed2dc9356128ccf59267c785c890a9d0e0f8f389b /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent42f7652d3eb527d03665b09edac47f85fb600924 (diff)
genirq/msi: Fix off-by-one error in msi_domain_alloc()
The error path in msi_domain_alloc(), frees the already allocated MSI interrupts in a loop, but the loop condition terminates when the index reaches zero, which fails to free the first allocated MSI interrupt at index zero. Check for >= 0 so that msi[0] is freed as well. Fixes: f3cf8bb0d6c3 ("genirq: Add generic msi irq domain support") Signed-off-by: Jinjie Ruan <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions