From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amerigo Wang Date: Wed, 12 Aug 2009 01:27:13 +0000 Subject: Re: [RFC Patch 1/2] kexec: show memory info in /proc/iomem Message-Id: <4A821A71.5010401@redhat.com> List-Id: References: <20090811104144.5154.77871.sendpatchset@localhost.localdomain> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "Yu, Fenghua" Cc: "'linux-kernel@vger.kernel.org'" , "'linux-ia64@vger.kernel.org'" , 'Neil Horman' , "'Eric W. Biederman'" , 'Andi Kleen' , "'akpm@linux-foundation.org'" , 'Ingo Molnar' Yu, Fenghua wrote: >> + >> +out_free: >> + kfree(kexec_free_res); >> + kfree(kexec_res); >> +out_release: >> + release_resource(kexec_res); >> + goto out; >> } >> > > The order of out_free: and out_release: might be reversed. You need to release_resource first; then kfree. Otherwise the previous failures jump to here and will cause problem. > Ahh, sure! I will fix it. Thanks!