]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Don't crash if there are no OPAL consoles
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 15 Jul 2013 03:03:14 +0000 (13:03 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 04:58:27 +0000 (14:58 +1000)
commit966b18d2a2433c808a156236a38f4aad8f3c71dc
tree9166c28c6353e87fe8fca69915d2828779c1b81b
parent30a3c0cb550a3628f5b90a19a1a4c8817b10ae64
powerpc/powernv: Don't crash if there are no OPAL consoles

Some machines might provide the console via a different mechanism
such as direct access to a UART from Linux, in which case OPAL
might not expose any console. In that case, the code would cause
a NULL dereference.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/opal.c