kdb: Fix early debugging crash regression
authorJason Wessel <jason.wessel@windriver.com>
Fri, 29 Oct 2010 18:14:41 +0000 (13:14 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Fri, 29 Oct 2010 18:14:41 +0000 (13:14 -0500)
commit578bd4dfcda63d2ef15f025f1d5d55c0e56b9660
tree1c8e62b55dff82b64a0e4148134074cf4d8ffdae
parent834b2964b7ab047610da038e42d61dc8dac6339a
kdb: Fix early debugging crash regression

The kdb_current legally be equal to NULL in the early boot of the x86
arch.  The problem pcan be observed by booting with the kernel arguments:

    earlyprintk=vga ekgdboc=kbd kgdbwait

The kdb shell will oops on entry and recursively fault because it
cannot get past the final stage of shell initialization.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
kernel/debug/kdb/kdb_main.c