diff options
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index a01a4241bc6b..6ed5983f78ff 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -6350,7 +6350,7 @@ int kvm_arch_create_memslot(struct kvm_memory_slot *slot, unsigned long npages) | |||
6350 | 6350 | ||
6351 | out_free: | 6351 | out_free: |
6352 | for (i = 0; i < KVM_NR_PAGE_SIZES - 1; ++i) { | 6352 | for (i = 0; i < KVM_NR_PAGE_SIZES - 1; ++i) { |
6353 | vfree(slot->arch.lpage_info[i]); | 6353 | kvm_kvfree(slot->arch.lpage_info[i]); |
6354 | slot->arch.lpage_info[i] = NULL; | 6354 | slot->arch.lpage_info[i] = NULL; |
6355 | } | 6355 | } |
6356 | return -ENOMEM; | 6356 | return -ENOMEM; |