lkml.org 
[lkml]   [2009]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 05/16] dma-debug: add initialization code
On Fri, Jan 09, 2009 at 08:58:42PM +0300, Evgeniy Polyakov wrote:
> On Fri, Jan 09, 2009 at 05:19:19PM +0100, Joerg Roedel (joerg.roedel@amd.com) wrote:
> +static int prealloc_memory(u32 num_entries)
> > +{
> > + struct dma_debug_entry *entry, *next_entry;
> > + int i;
> > +
> > + for (i = 0; i < num_entries; ++i) {
> > + entry = kmalloc(sizeof(*entry), GFP_KERNEL | __GFP_ZERO);
>
> kzalloc?

True. kzalloc is better. I will change that.

Joerg


\
 
 \ /
  Last update: 2009-01-09 19:19    [W:0.313 / U:1.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site