diff options
author | Jinjie Ruan <ruanjinjie@huawei.com> | 2024-10-26 09:36:39 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-10-27 12:40:47 +0300 |
commit | 5f994f534120f47432092fb36f5cb0c7a80ed2bf (patch) | |
tree | d2dc9356128ccf59267c785c890a9d0e0f8f389b /tools/perf/scripts/python/syscall-counts.py | |
parent | 42f7652d3eb527d03665b09edac47f85fb600924 (diff) | |
download | linux-5f994f534120f47432092fb36f5cb0c7a80ed2bf.tar.xz |
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 <ruanjinjie@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20241026063639.10711-1-ruanjinjie@huawei.com
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions