lkml.org 
[lkml]   [2014]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Add initcall_blacklist kernel parameter [v2]
>  		do_initcall_level(level);
> +
> + list_for_each_safe(tmp, next, &blacklisted_initcalls) {
> + entry = list_entry(tmp, struct blacklist_entry, next);
> + free_bootmem(entry->buf, strlen(entry->buf));
> + free_bootmem(entry, sizeof(*entry));

Does that really work? At this point the bootmem allocator should
be already finished, so no memory will be freed.

For this case it's probably ok to leak it.

Alternatively you could use static arrays and storing pointer/len.

-Andi


\
 
 \ /
  Last update: 2014-03-31 15:41    [W:0.037 / U:1.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site