Skip to content

Commit 2895db6

Browse files
jsmattsonjrrkrcmar
authored andcommitted
KVM: VMX: fix page leak in hardware_setup()
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]>
1 parent d59d51f commit 2895db6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/x86/kvm/vmx.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6751,7 +6751,6 @@ static __init int hardware_setup(void)
67516751
goto out;
67526752
}
67536753

6754-
vmx_io_bitmap_b = (unsigned long *)__get_free_page(GFP_KERNEL);
67556754
memset(vmx_vmread_bitmap, 0xff, PAGE_SIZE);
67566755
memset(vmx_vmwrite_bitmap, 0xff, PAGE_SIZE);
67576756

0 commit comments

Comments
 (0)