From: Michael Ellerman Date: Tue, 9 Aug 2005 05:20:20 +0000 (+1000) Subject: [PATCH] ppc64: Check of_chosen in check_for_initrd() X-Git-Tag: v2.6.14-rc1~1037^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a5573e378c5c8976c6000a7643b52e2a0481688;p=pandora-kernel.git [PATCH] ppc64: Check of_chosen in check_for_initrd() You can't call get_property() on a NULL node, so check if of_chosen is set in check_for_initrd(). Signed-off-by: Michael Ellerman arch/ppc64/kernel/setup.c | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed