KVM: Use kmem_cache_free for kmem_cache_zalloc'ed objects
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 1 Aug 2007 04:46:11 +0000 (14:46 +1000)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:23 +0000 (10:18 +0200)
commita477034750ce59df7fc17823f085df5a30e316f0
treecfca29ba12e9bcb7256ff424438020545721e305
parentf02424785ab83bab8283ad33044284f749c08db8
KVM: Use kmem_cache_free for kmem_cache_zalloc'ed objects

We use kfree in svm.c and vmx.c, and this works, but it could break at
any time.  kfree() is supposed to match up with kmalloc().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/svm.c
drivers/kvm/vmx.c