lkml.org 
[lkml]   [2009]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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!



\
 
 \ /
  Last update: 2009-08-12 03:27    [W:0.191 / U:0.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site