diff options
author | 2013-09-28 12:40:28 +0000 | |
---|---|---|
committer | 2013-09-28 12:40:28 +0000 | |
commit | 7313f802ae50f774f030c4ef577969f14a8998be (patch) | |
tree | be71ed189a43bd5b12ead69639c135bba8620fca /sys/arch/sparc | |
parent | Resolve the uncertainty in the REFID assignment. (diff) | |
download | wireguard-openbsd-7313f802ae50f774f030c4ef577969f14a8998be.tar.xz wireguard-openbsd-7313f802ae50f774f030c4ef577969f14a8998be.zip |
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/sparc')
-rw-r--r-- | sys/arch/sparc/sparc/machdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c index 56c9ab5978d..70fd6f7230b 100644 --- a/sys/arch/sparc/sparc/machdep.c +++ b/sys/arch/sparc/sparc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.146 2013/06/11 16:42:11 deraadt Exp $ */ +/* $OpenBSD: machdep.c,v 1.147 2013/09/28 12:40:32 miod Exp $ */ /* $NetBSD: machdep.c,v 1.85 1997/09/12 08:55:02 pk Exp $ */ /* @@ -569,7 +569,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) || (howto & RB_POWERDOWN)) { #if defined(SUN4M) |