From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [FIX PATCH] KVM: Use kvm_kvfree() to free memory allocated by kvm_kvzalloc() Date: Tue, 19 Jun 2012 16:10:36 +0300 Message-ID: <4FE07A4C.6050609@redhat.com> References: <20120619220456.eedf64308ad08ac045cb9c56@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: mtosatti@redhat.com, kvm@vger.kernel.org, yoshikawa.takuya@oss.ntt.co.jp To: Takuya Yoshikawa Return-path: Received: from mx1.redhat.com ([209.132.183.28]:9955 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753091Ab2FSNKn (ORCPT ); Tue, 19 Jun 2012 09:10:43 -0400 In-Reply-To: <20120619220456.eedf64308ad08ac045cb9c56@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On 06/19/2012 04:04 PM, Takuya Yoshikawa wrote: > From: Takuya Yoshikawa > > The following commit did not care about the error handling path: > > commit c1a7b32a14138f908df52d7c53b5ce3415ec6b50 > KVM: Avoid wasting pages for small lpage_info arrays > > If memory allocation fails, vfree() will be called with the address > returned by kzalloc(). This patch fixes this issue. Thanks, applied to next. -- error compiling committee.c: too many arguments to function