mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
KVM: VMX: fix page leak in hardware_setup()
[ Upstream commit2895db67b0] vmx_io_bitmap_b should not be allocated twice. Fixes:2361133293("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> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
034ddb54c3
commit
8172a467ad
@@ -6950,7 +6950,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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user