diff options
| author | Osama Abdelkader <osama.abdelkader@gmail.com> | 2026-03-16 16:16:11 +0100 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2026-03-27 18:40:29 +0530 |
| commit | b7c958d7c1eb1cb9b2be7b5ee4129fcd66cec978 (patch) | |
| tree | 1d78befa49c56a80981429b9aed540135d88e9a3 /tools/perf/scripts/python | |
| parent | aa35bcf2e76234fef7bbca9bf364039692a27661 (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')
0 files changed, 0 insertions, 0 deletions
