Commit 60cba5a5 authored by Andres Salomon's avatar Andres Salomon Committed by Grant Likely

x86: OLPC: have prom_early_alloc BUG rather than return NULL

..similar to what sparc's prom_early_alloc does.
Signed-off-by: default avatarAndres Salomon <dilinger@queued.net>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 8aaccf7f
...@@ -140,8 +140,7 @@ void * __init prom_early_alloc(unsigned long size) ...@@ -140,8 +140,7 @@ void * __init prom_early_alloc(unsigned long size)
* wasted bootmem) and hand off chunks of it to callers. * wasted bootmem) and hand off chunks of it to callers.
*/ */
res = alloc_bootmem(chunk_size); res = alloc_bootmem(chunk_size);
if (!res) BUG_ON(!res);
return NULL;
prom_early_allocated += chunk_size; prom_early_allocated += chunk_size;
memset(res, 0, chunk_size); memset(res, 0, chunk_size);
free_mem = chunk_size; free_mem = chunk_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment