[PATCH v2] KVM: arm64: timers: Fix resource leaks in kvm_timer_hyp_init()
Oliver Upton
oliver.upton at linux.dev
Tue Jun 13 05:16:01 PDT 2023
On Tue, 13 Jun 2023 09:43:39 +0300, Dan Carpenter wrote:
> Smatch detected this bug:
> arch/arm64/kvm/arch_timer.c:1425 kvm_timer_hyp_init()
> warn: missing unwind goto?
>
> There are two resources to be freed the vtimer and ptimer. The
> line that Smatch complains about should free the vtimer first
> before returning and then after that cleanup code should free
> the ptimer.
>
> [...]
Applied to kvmarm/next, thanks!
[1/1] KVM: arm64: timers: Fix resource leaks in kvm_timer_hyp_init()
https://git.kernel.org/kvmarm/kvmarm/c/21e87daece5a
--
Best,
Oliver
More information about the linux-arm-kernel
mailing list