Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2106a548 authored by Guo Chao's avatar Guo Chao Committed by Marcelo Tosatti
Browse files

KVM: VMX: code clean for vmx_init()

parent f9808b7f
Loading
Loading
Loading
Loading
+7 −9
Original line number Diff line number Diff line
@@ -7290,23 +7290,21 @@ static int __init vmx_init(void)
	if (!vmx_io_bitmap_a)
		return -ENOMEM;

	vmx_io_bitmap_b = (unsigned long *)__get_free_page(GFP_KERNEL);
	if (!vmx_io_bitmap_b) {
	r = -ENOMEM;

	vmx_io_bitmap_b = (unsigned long *)__get_free_page(GFP_KERNEL);
	if (!vmx_io_bitmap_b)
		goto out;
	}

	vmx_msr_bitmap_legacy = (unsigned long *)__get_free_page(GFP_KERNEL);
	if (!vmx_msr_bitmap_legacy) {
		r = -ENOMEM;
	if (!vmx_msr_bitmap_legacy)
		goto out1;
	}


	vmx_msr_bitmap_longmode = (unsigned long *)__get_free_page(GFP_KERNEL);
	if (!vmx_msr_bitmap_longmode) {
		r = -ENOMEM;
	if (!vmx_msr_bitmap_longmode)
		goto out2;
	}


	/*
	 * Allow direct access to the PC debug port (it is often used for I/O