]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - kernel/debug/kdb/kdb_main.c
kdb: Fix early debugging crash regression
[net-next-2.6.git] / kernel / debug / kdb / kdb_main.c
index 9755ac05e446ebc816eb8064ef54d161df9d180d..37755d621924e5256b3494d5e94b57415be5a3f1 100644 (file)
@@ -1127,7 +1127,7 @@ static int kdb_local(kdb_reason_t reason, int error, struct pt_regs *regs,
                /* special case below */
        } else {
                kdb_printf("\nEntering kdb (current=0x%p, pid %d) ",
-                          kdb_current, kdb_current->pid);
+                          kdb_current, kdb_current ? kdb_current->pid : 0);
 #if defined(CONFIG_SMP)
                kdb_printf("on processor %d ", raw_smp_processor_id());
 #endif