diff options
| author | 2026-03-16 16:16:11 +0100 | |
|---|---|---|
| committer | 2026-03-27 18:40:29 +0530 | |
| commit | b7c958d7c1eb1cb9b2be7b5ee4129fcd66cec978 (patch) | |
| tree | 1d78befa49c56a80981429b9aed540135d88e9a3 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | RISC-V: KVM: fix PMU snapshot_set_shmem on 32-bit hosts (diff) | |
riscv: kvm: fix vector context allocation leak
When the second kzalloc (host_context.vector.datap) fails in
kvm_riscv_vcpu_alloc_vector_context, the first allocation
(guest_context.vector.datap) is leaked. Free it before returning.
Fixes: 0f4b82579716 ("riscv: KVM: Add vector lazy save/restore support")
Cc: stable@vger.kernel.org
Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
Reviewed-by: Andy Chiu <andybnac@gmail.com>
Link: https://lore.kernel.org/r/20260316151612.13305-1-osama.abdelkader@gmail.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
