Re: [PATCH 05/16] dma-debug: add initialization code

From: Evgeniy Polyakov
Date: Fri Jan 09 2009 - 12:59:34 EST


On Fri, Jan 09, 2009 at 05:19:19PM +0100, Joerg Roedel (joerg.roedel@xxxxxxx) 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/