diff options
Diffstat (limited to 'lib/sbi/sbi_sse.c')
-rw-r--r-- | lib/sbi/sbi_sse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sbi/sbi_sse.c b/lib/sbi/sbi_sse.c index a686692..f0729f9 100644 --- a/lib/sbi/sbi_sse.c +++ b/lib/sbi/sbi_sse.c @@ -1119,7 +1119,7 @@ void sbi_sse_exit(struct sbi_scratch *scratch) for (i = 0; i < EVENT_COUNT; i++) { e = sse_event_get(supported_events[i]); - if (e->attrs.hartid != current_hartid()) + if (!e || e->attrs.hartid != current_hartid()) continue; if (sse_event_state(e) > SBI_SSE_STATE_REGISTERED) { |