From: Michael Ellerman Date: Wed, 25 Jan 2006 08:31:25 +0000 (+1300) Subject: [PATCH] powerpc: Don't allocate zero bytes in finish_device_tree() X-Git-Tag: v2.6.16-rc3~67^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa93895329b87112cb1fd784db969e60b5b46af6;p=pandora-kernel.git [PATCH] powerpc: Don't allocate zero bytes in finish_device_tree() In prom.c we run finish_node() on allnodes twice. The first time we just calculate how much memory we'll need, the second time we do the actual work. If the calculation stage determines that we need 0 bytes, then we should skip the lmb allocation. Although an alloc of zero will work, it has been seen to lead to a BUG_ON() in reserve_bootmem() on at least one machine. Signed-off-by: Michael Ellerman Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed