lkml.org 
[lkml]   [2022]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH] kvm: x86: mmu: fix memoryleak in kvm_mmu_vendor_module_init()
    From
    Date
    On 2022/8/24 23:44, Sean Christopherson wrote:
    > Nit for future patches, please use
    >
    > KVM: x86/mmu:
    >
    > for the scope.

    Will take care of it.

    >
    > On Tue, Aug 23, 2022, Miaohe Lin wrote:
    >> When register_shrinker() fails, we forgot to release the percpu counter
    >> kvm_total_used_mmu_pages leading to memoryleak. Fix this issue by calling
    >> percpu_counter_destroy() when register_shrinker() fails.
    >>
    >> Fixes: ab271bd4dfd5 ("x86: kvm: propagate register_shrinker return code")
    >> Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
    >> ---
    >
    > Reviewed-by: Sean Christopherson <seanjc@google.com>

    Many thanks for your review.

    Thanks,
    Miaohe Lin


    \
     
     \ /
      Last update: 2022-08-25 03:52    [W:4.203 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site