On 01/16/2010 04:00 AM, Marcelo Tosatti wrote:
kvm_destroy_vm should free "struct kvm" after cleanup_srcu_struct. Signed-off-by: Marcelo Tosatti<mtosatti@xxxxxxxxxx> diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index e0a591d..c828a39 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -509,8 +509,8 @@ static void kvm_destroy_vm(struct kvm *kvm) #else kvm_arch_flush_shadow(kvm); #endif - kvm_arch_destroy_vm(kvm); cleanup_srcu_struct(&kvm->srcu); + kvm_arch_destroy_vm(kvm); hardware_disable_all(); mmdrop(mm); }
Applied, thanks. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html