KVM: PIT: unregister kvm irq notifier if fail to create pit
authorWei Yongjun <yjwei@cn.fujitsu.com>
Mon, 8 Feb 2010 09:03:51 +0000 (17:03 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:36:09 +0000 (12:36 -0300)
commitd225f53b76f4287365efd381b9e3a732e6bad27e
tree8e24e90ed661f1e7ad886e91f0b7252d097e5f1e
parenta19a6d1131c77822ae55f84a1bd6d62327e99287
KVM: PIT: unregister kvm irq notifier if fail to create pit

If fail to create pit, we should unregister kvm irq notifier
which register in kvm_create_pit().

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Acked-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/i8254.c