[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4A821A71.5010401@redhat.com>
Date: Wed, 12 Aug 2009 09:27:13 +0800
From: Amerigo Wang <amwang@...hat.com>
To: "Yu, Fenghua" <fenghua.yu@...el.com>
CC: "'linux-kernel@...r.kernel.org'" <linux-kernel@...r.kernel.org>,
"'linux-ia64@...r.kernel.org'" <linux-ia64@...r.kernel.org>,
"'Neil Horman'" <nhorman@...hat.com>,
"'Eric W. Biederman'" <ebiederm@...ssion.com>,
"'Andi Kleen'" <andi@...stfloor.org>,
"'akpm@...ux-foundation.org'" <akpm@...ux-foundation.org>,
"'Ingo Molnar'" <mingo@...e.hu>
Subject: Re: [RFC Patch 1/2] kexec: show memory info in /proc/iomem
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!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists