Skip to content
Commit 9a5573e3 authored by Michael Ellerman's avatar Michael Ellerman Committed by Paul Mackerras
Browse files

[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: default avatarMichael Ellerman <michael@ellerman.id.au>

 arch/ppc64/kernel/setup.c |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 95920324
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