CVE-2024-26902 perf: RISCV: Fix panic on pmu overflow handler