Re: [PATCH] perf: RISC-V: check cpu_hw_evt before dereference in overflow IRQ

From: Paul Walmsley

Date: Fri Aug 07 2026 - 20:45:12 EST


Hi,

On Fri, 7 Aug 2026, Xixin Liu wrote:

> The overflow IRQ handler dereferences cpu_hw_evt before the null check.
> Move the check first. Defensive only; the cookie is valid on the normal
> path today.
>
> Signed-off-by: Xixin Liu <liuxixin@xxxxxxxxxx>

Could you please add a Fixes: tag? Also, if it was written with LLM
assistance, please add the appropriate Assisted-by: tag.

thanks


- Paul