]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
KVM: VMX: fix page leak in hardware_setup()
authorJim Mattson <jmattson@google.com>
Fri, 1 Dec 2017 17:57:56 +0000 (09:57 -0800)
committerRadim Krčmář <rkrcmar@redhat.com>
Tue, 5 Dec 2017 21:34:49 +0000 (22:34 +0100)
vmx_io_bitmap_b should not be allocated twice.

Fixes: 23611332938d ("KVM: VMX: refactor setup of global page-sized bitmaps")
Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx.c

index 2fd9a8cec29a293134d6c893e8800920173aa372..8eba631c4dbd509d8687c6135e8dba267042f5e0 100644 (file)
@@ -6751,7 +6751,6 @@ static __init int hardware_setup(void)
                        goto out;
        }
 
-       vmx_io_bitmap_b = (unsigned long *)__get_free_page(GFP_KERNEL);
        memset(vmx_vmread_bitmap, 0xff, PAGE_SIZE);
        memset(vmx_vmwrite_bitmap, 0xff, PAGE_SIZE);