diff options
| author | Yufeng Wang <wangyufeng@kylinos.cn> | 2026-03-17 19:47:59 +0800 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2026-03-30 12:10:21 +0530 |
| commit | 9b33ab1e8c189bd0aced0d07545b0f31a459d40e (patch) | |
| tree | 2dbd8115273ede573e2a2cf970dca6da40487f07 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 198c7ce9801abd63c44176c3f034577b887c0070 (diff) | |
riscv: kvm: add null pointer check for vector datap
Add WARN_ON check before accessing cntx->vector.datap in
kvm_riscv_vcpu_vreg_addr() to detect potential null pointer
dereferences early, consistent with the pattern used in
kvm_riscv_vcpu_vector_reset().
This helps catch initialization issues where vector context
allocation may have failed.
Signed-off-by: Yufeng Wang <wangyufeng@kylinos.cn>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20260317114759.53165-1-r4o5m6e8o@163.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
