[U-Boot] Commit ecee9... (Program net device MAC addresses after initializing) breakage

Mike Frysinger vapier at gentoo.org
Sat Nov 13 03:20:02 CET 2010


On Friday, November 12, 2010 20:51:12 Graeme Russ wrote:
> On 13/11/10 12:11, Mike Frysinger wrote:
> > On Friday, November 12, 2010 05:55:55 Graeme Russ wrote:
> >> On 10/11/10 14:36, Mike Frysinger wrote:
> >>> On Saturday, November 06, 2010 18:13:08 Graeme Russ wrote:
> >>>> I saw discussion a little while ago regarding implementing a version
> >>>> of malloc that returns cleared memory - did this gain any traction?
> >>> 
> >>> i dont think anyone posted a patch.  it would make sense though to
> >>> generalize the zalloc() code since some places are already doing it.
> >> 
> >> Actually, I think we should be using calloc() more than we are
> > 
> > if we want to define zalloc() to calloc(), then sure.  but forcing people
> > to use calloc() with a size=1 is silly.  the API is not nearly as
> > obvious to passing observers as zalloc().
> 
> Hmm, U-Boot has a zalloc in lib/gunzip.c which does not zero memory

yes, that's why i said we should generalize things
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20101112/e64b75aa/attachment.pgp 


More information about the U-Boot mailing list