Re: [PATCH v2] KVM: PPC: Book3S HV: Clean up on uvmem initialization failure

From: IBM

Date: Wed Nov 18 2026 - 06:16:01 EST


Haoxiang Li <haoxiang_li2024@xxxxxxx> writes:

> When kvmppc_uvmem_init() fails, kvmppc_book3s_init_hv() returns
> directly, bypassing the existing error path. Jump to the existing
> error path to clean up before returning the error.
>
> Fixes: 175be7e5800e ("KVM: PPC: Book3S HV: Free allocated memory if module init fails")
> Signed-off-by: Haoxiang Li <haoxiang_li2024@xxxxxxx>

LGTM. Feel free to add:
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@xxxxxxxxx>