diff options
| author | Xixin Liu <liuxixin@kylinos.cn> | 2026-08-11 11:51:00 +0800 |
|---|---|---|
| committer | Paul Walmsley <pjw@kernel.org> | 2026-09-01 19:19:48 -0600 |
| commit | f643f520c4c6998fa27dce90dd3b3ff6414e0bae (patch) | |
| tree | db008081aef99b3fe9aa7d2c1161dc03665f8549 /scripts/Makefile.thinlto | |
| parent | 248dbaf7770c0843702355a9fb724a882c669062 (diff) | |
| download | linux-f643f520c4c6998fa27dce90dd3b3ff6414e0bae.tar.gz linux-f643f520c4c6998fa27dce90dd3b3ff6414e0bae.zip | |
perf: RISC-V: check cpu_hw_evt before dereference in overflow IRQ
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.
Fixes: a8625217a054 ("drivers/perf: riscv: Implement SBI PMU snapshot function")
Assisted-by: DeepSeek:deepseek-v3
Signed-off-by: Xixin Liu <liuxixin@kylinos.cn>
Link: https://patch.msgid.link/fdd42c791752.v2.1786420235.git.liuxixin@kylinos.cn
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
