KVM: destroy workqueue on kvm_create_pit() failures
authorXiaotian Feng <dfeng@redhat.com>
Fri, 13 Aug 2010 08:23:06 +0000 (16:23 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 15 Aug 2010 11:17:35 +0000 (14:17 +0300)
kernel needs to destroy workqueue if kvm_create_pit() fails, otherwise
after pit is freed, the workqueue is leaked.

Signed-off-by: Xiaotian Feng <dfeng@redhat.com>
Cc: Avi Kivity <avi@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Gleb Natapov <gleb@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Gregory Haskins <ghaskins@novell.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

No differences found