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 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?


--
Evgeniy Polyakov


\
 
 \ /
  Last update: 2009-01-09 19:01    [W:0.384 / U:0.864 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site