diff options
author | Li RongQing <lirongqing@baidu.com> | 2024-01-31 02:23:57 +0100 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-04-09 21:18:38 +0200 |
commit | a952d608f0bef10359449692e0fcff6608b6cd40 (patch) | |
tree | a41ae5c428d9f8ff28139bfb8a422fb6e2c1b795 /virt | |
parent | KVM: x86: Advertise max mappable GPA in CPUID.0x80000008.GuestPhysBits (diff) | |
download | linux-a952d608f0bef10359449692e0fcff6608b6cd40.tar.xz linux-a952d608f0bef10359449692e0fcff6608b6cd40.zip |
KVM: Use vfree for memory allocated by vcalloc()/__vcalloc()
commit 37b2a6510a48("KVM: use __vcalloc for very large allocations")
replaced kvzalloc()/kvcalloc() with vcalloc(), but didn't replace kvfree()
with vfree().
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Link: https://lore.kernel.org/r/20240131012357.53563-1-lirongqing@baidu.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index fb49c2a60200..711970d385f5 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1020,7 +1020,7 @@ static void kvm_destroy_dirty_bitmap(struct kvm_memory_slot *memslot) if (!memslot->dirty_bitmap) return; - kvfree(memslot->dirty_bitmap); + vfree(memslot->dirty_bitmap); memslot->dirty_bitmap = NULL; } |