VMX: fix failure path in construct_vmcs
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Wed, 18 Sep 2013 12:45:42 +0000 (14:45 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 18 Sep 2013 12:45:42 +0000 (14:45 +0200)
commitdad7e45bf44c0569546a3ed7d0fa4182a4a73f0a
tree2e09d1c291b43f6e5c7ff350e54056f25a2274c8
parent925fbcb7fdd6238f26b1576dc1f3e297f1f24f1e
VMX: fix failure path in construct_vmcs

If the allocation fails, make sure to call vmx_vmcs_exit().

This is a candidate for backport.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
xen/arch/x86/hvm/vmx/vmcs.c