diff options
author | Jim Mattson <jmattson@google.com> | 2017-12-01 09:57:56 -0800 |
---|---|---|
committer | Radim Krčmář <rkrcmar@redhat.com> | 2017-12-05 22:34:49 +0100 |
commit | 2895db67b01cb875457c9c3f30a14723b6b5dfd5 (patch) | |
tree | 9267a6cb0fc613021825c67f897212b6e00231b5 | |
parent | d59d51f088014f25c2562de59b9abff4f42a7468 (diff) | |
download | linux-stable-2895db67b01cb875457c9c3f30a14723b6b5dfd5.tar.gz linux-stable-2895db67b01cb875457c9c3f30a14723b6b5dfd5.tar.bz2 linux-stable-2895db67b01cb875457c9c3f30a14723b6b5dfd5.zip |
KVM: VMX: fix page leak in hardware_setup()
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>
-rw-r--r-- | arch/x86/kvm/vmx.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 2fd9a8cec29a..8eba631c4dbd 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -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); |