KVM: PPC: Do not create debugfs if fail to create vcpu
authorWei Yongjun <yjwei@cn.fujitsu.com>
Tue, 9 Mar 2010 06:13:43 +0000 (14:13 +0800)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:15:21 +0000 (12:15 +0300)
commit06056bfb944a0302a8f22eb45f09123de7fb417b
tree72868a18843f5fcdbb3d933f96f2ca69bc385dc8
parent7b06bf2ffa15e119c7439ed0b024d44f66d7b605
KVM: PPC: Do not create debugfs if fail to create vcpu

If fail to create the vcpu, we should not create the debugfs
for it.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Acked-by: Alexander Graf <agraf@suse.de>
Cc: stable@kernel.org
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/powerpc.c