Re: [U-Boot] [PATCH] malloc: return NULL if not initialized yet

2010-01-17 Thread Wolfgang Denk
In message 1263551117-26553-1-git-send-email...@denx.de you wrote: When malloc() was called before it was properly initialized (as would happen if when used before relocation to RAM) it returned random, non-NULL values, which called all kinds of difficult to debug subsequent errors. Make

[U-Boot] [PATCH] malloc: return NULL if not initialized yet

2010-01-15 Thread Wolfgang Denk
When malloc() was called before it was properly initialized (as would happen if when used before relocation to RAM) it returned random, non-NULL values, which called all kinds of difficult to debug subsequent errors. Make sure to return NULL when initialization was not done yet. Signed-off-by:

Re: [U-Boot] [PATCH] malloc: return NULL if not initialized yet

2010-01-15 Thread Mike Frysinger
On Friday 15 January 2010 05:25:17 Wolfgang Denk wrote: + if ((mem_malloc_start == 0) (mem_malloc_end ==0)) { missing space ? ==0 - == 0 ? -mike signature.asc Description: This is a digitally signed message part. ___ U-Boot mailing list

Re: [U-Boot] [PATCH] malloc: return NULL if not initialized yet

2010-01-15 Thread Wolfgang Denk
Dear Mike Frysinger, In message 201001150539.16650.vap...@gentoo.org you wrote: On Friday 15 January 2010 05:25:17 Wolfgang Denk wrote: + if ((mem_malloc_start == 0) (mem_malloc_end ==0)) { missing space ? ==0 - == 0 ? Right. Will fix this then applying. Thanks for catching. Best