KVM: VMX: fix page leak in hardware_setup()
authorJim Mattson <jmattson@google.com>
Fri, 1 Dec 2017 17:57:56 +0000 (09:57 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Feb 2018 10:07:59 +0000 (11:07 +0100)
commit8172a467adaebddf2577d79ccdbacdcc54ee9cbf
tree40222c46e4d3737f1d5dd08e420214bf8a059567
parent034ddb54c33ecfb3408bd87415eb8f07712895b5
KVM: VMX: fix page leak in hardware_setup()

[ Upstream commit 2895db67b01cb875457c9c3f30a14723b6b5dfd5 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx.c