Re: [PATCH v2] KVM: arm64: timers: Fix resource leaks in kvm_timer_hyp_init()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux