From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755346AbZHLBZd (ORCPT ); Tue, 11 Aug 2009 21:25:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755216AbZHLBZb (ORCPT ); Tue, 11 Aug 2009 21:25:31 -0400 Received: from mx2.redhat.com ([66.187.237.31]:44408 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754264AbZHLBZa (ORCPT ); Tue, 11 Aug 2009 21:25:30 -0400 Message-ID: <4A821A71.5010401@redhat.com> Date: Wed, 12 Aug 2009 09:27:13 +0800 From: Amerigo Wang User-Agent: Thunderbird 2.0.0.22 (X11/20090719) MIME-Version: 1.0 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'" Subject: Re: [RFC Patch 1/2] kexec: show memory info in /proc/iomem References: <20090811104144.5154.77871.sendpatchset@localhost.localdomain> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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!