Re: [PATCH 3/3] x86: OLPC: speed up device tree creation during boot (v2)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Milton Miller
Date: Friday, November 12, 2010 - 12:48 am

On Thu, 11 Nov 2010 around 21:45:46 -0800, Andres Salomon wrote:

Static variables are implicitly 0 and NULL


Oops.  If alloc_bootmem fails, we loose mem but don't reset free_mem, so a
later call (possibly for a smaller chunk) may return memory starting
at NULL.

I suggest just assinging res above and then add mem = res inside this if.

Oh, this is alloc_bootmem not alloc_bootmem_nopainc ... should it be?


milton
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 3/3] x86: OLPC: speed up device tree creation d ..., Milton Miller, (Fri Nov 12, 12:48 am)
[tip:x86/olpc] x86, olpc: Speed up device tree creation du ..., tip-bot for Andres S ..., (Wed Dec 15, 7:58 pm)