lkml.org 
[lkml]   [2014]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/9] staging: ion: tidy up a bit
On Mon, May 26, 2014 at 07:04:53PM +0900, Heesub Shin wrote:
> @@ -124,7 +122,6 @@ static struct page_info *alloc_largest_available(struct ion_system_heap *heap,
>
> info->page = page;
> info->order = orders[i];
> - INIT_LIST_HEAD(&info->list);
> return info;
> }
> kfree(info);

Wait. How does this code work without that INIT_LIST_HEAD()? What am
I missing here...

regards,
dan carpenter




\
 
 \ /
  Last update: 2014-05-26 13:21    [W:0.330 / U:1.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site