[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090109181731.GC9466@8bytes.org>
Date: Fri, 9 Jan 2009 19:17:31 +0100
From: Joerg Roedel <joro@...tes.org>
To: Evgeniy Polyakov <zbr@...emap.net>
Cc: Joerg Roedel <joerg.roedel@....com>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, iommu@...ts.linux-foundation.org,
mingo@...hat.com
Subject: Re: [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@....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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists