From patchwork Mon Aug 3 09:10:06 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Guangrong X-Patchwork-Id: 38853 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n739BHL3015558 for ; Mon, 3 Aug 2009 09:11:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754495AbZHCJK3 (ORCPT ); Mon, 3 Aug 2009 05:10:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754407AbZHCJK3 (ORCPT ); Mon, 3 Aug 2009 05:10:29 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:63813 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752281AbZHCJK2 (ORCPT ); Mon, 3 Aug 2009 05:10:28 -0400 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id E955E170155; Mon, 3 Aug 2009 17:10:21 +0800 (CST) Received: from fnst.cn.fujitsu.com (localhost.localdomain [127.0.0.1]) by tang.cn.fujitsu.com (8.13.1/8.13.1) with ESMTP id n739BD4P026803; Mon, 3 Aug 2009 17:11:13 +0800 Received: from [10.167.141.40] (unknown [10.167.141.40]) by fnst.cn.fujitsu.com (Postfix) with ESMTPA id 071AED40C1; Mon, 3 Aug 2009 17:12:32 +0800 (CST) Message-ID: <4A76A96E.8070608@cn.fujitsu.com> Date: Mon, 03 Aug 2009 17:10:06 +0800 From: Xiao Guangrong User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Ingo Molnar CC: Avi Kivity , LKML , KVM list Subject: [PATCH] kvm: fix kvm_init() Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Remove debugfs file if kvm_arch_init() return error Signed-off-by: Xiao Guangrong --- virt/kvm/kvm_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 2884baf..6299208 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -2679,8 +2679,8 @@ out_free_0: __free_page(bad_page); out: kvm_arch_exit(); - kvm_exit_debug(); out_fail: + kvm_exit_debug(); return r; } EXPORT_SYMBOL_GPL(kvm_init);