Thread (1 message) 1 message, 1 author, 2014-05-10

Re: [PATCH v2] DMA: add a driver for AMBA AXI NBPF DMAC IP cores

From: Guennadi Liakhovetski <hidden>
Date: 2014-05-10 13:44:00

On Sat, 10 May 2014, Guennadi Liakhovetski wrote:

[snip]
quoted
quoted
+	nbpf = devm_kzalloc(dev, sizeof(*nbpf) + num_channels *
+			    sizeof(nbpf->chan[0]), GFP_KERNEL);
I think we have devm_kcalloc for these things?
Ah, ok, missed this, thanks, will update!
Sorry, don't think it's suitable here. The allocation size is "y + x * n" 
and not just "x * n."

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help