On Sat, 10 May 2014, Guennadi Liakhovetski wrote: [snip] > > > + 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@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html