[kvm-unit-tests PATCH 2/3] riscv: sbi: sse: Add missing index for handler call check
Clément Léger
cleger at rivosinc.com
Mon Jun 23 06:11:24 PDT 2025
The check for handler to be finished was actually missing the index,
leading to a single handler call being checked.
Signed-off-by: Clément Léger <cleger at rivosinc.com>
---
riscv/sbi-sse.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/riscv/sbi-sse.c b/riscv/sbi-sse.c
index 2bac5fff..5bfc7a07 100644
--- a/riscv/sbi-sse.c
+++ b/riscv/sbi-sse.c
@@ -1017,8 +1017,10 @@ static void sse_test_injection_priority_arg(struct priority_test_arg *in_args,
sbiret_report_error(&ret, SBI_SUCCESS, "injection");
/* Check that all handlers have been called */
- for (i = 0; i < args_size; i++)
- report(arg->called, "Event %s handler called", sse_event_name(args[i]->event_id));
+ for (i = 0; i < args_size; i++) {
+ arg = args[i];
+ report(arg->called, "Event %s handler called", sse_event_name(arg->event_id));
+ }
err:
for (i = 0; i < args_size; i++) {
--
2.50.0
More information about the kvm-riscv
mailing list