Skip to content

Commit

Permalink
KVM: VMX: fix page leak in hardware_setup()
Browse files Browse the repository at this point in the history
vmx_io_bitmap_b should not be allocated twice.

Fixes: 2361133 ("KVM: VMX: refactor setup of global page-sized bitmaps")
Signed-off-by: Jim Mattson <[email protected]>
Reviewed-by: Krish Sadhukhan <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Signed-off-by: Radim Krčmář <[email protected]>
  • Loading branch information
jsmattsonjr authored and rkrcmar committed Dec 5, 2017
1 parent d59d51f commit 2895db6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2895db6

Please sign in to comment.