summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-09-28 12:40:33 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-09-28 12:40:33 +0000
commit8817d0b5c1445f970be2840d71c641f02e753bf2 (patch)
tree0e9ce38c4c0f38d80fa435d921564b33988528c3 /sys/arch/mvme88k
parent0669b04e6ab16a18f825d426832518ec008bc297 (diff)
In boot(), do not iterate over alldevs if it's empty (i.e. halting from ddb
with ddb entered early with boot -d or from UKC).
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r--sys/arch/mvme88k/mvme88k/machdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/mvme88k/mvme88k/machdep.c b/sys/arch/mvme88k/mvme88k/machdep.c
index 41f82291034..cbe4c162bf4 100644
--- a/sys/arch/mvme88k/mvme88k/machdep.c
+++ b/sys/arch/mvme88k/mvme88k/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.255 2013/06/11 16:42:10 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.256 2013/09/28 12:40:31 miod Exp $ */
/*
* Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
@@ -379,7 +379,8 @@ boot(howto)
haltsys:
doshutdownhooks();
- config_suspend(TAILQ_FIRST(&alldevs), DVACT_POWERDOWN);
+ if (!TAILQ_EMPTY(&alldevs))
+ config_suspend(TAILQ_FIRST(&alldevs), DVACT_POWERDOWN);
if (howto & RB_HALT) {
printf("System halted. Press any key to reboot...\n\n");