diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-09-28 12:40:33 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-09-28 12:40:33 +0000 |
commit | 8817d0b5c1445f970be2840d71c641f02e753bf2 (patch) | |
tree | 0e9ce38c4c0f38d80fa435d921564b33988528c3 /sys/arch/sgi | |
parent | 0669b04e6ab16a18f825d426832518ec008bc297 (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/sgi')
-rw-r--r-- | sys/arch/sgi/sgi/machdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sgi/sgi/machdep.c b/sys/arch/sgi/sgi/machdep.c index fa106c14917..137e553e0b0 100644 --- a/sys/arch/sgi/sgi/machdep.c +++ b/sys/arch/sgi/sgi/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.132 2012/10/08 21:47:50 deraadt Exp $ */ +/* $OpenBSD: machdep.c,v 1.133 2013/09/28 12:40:31 miod Exp $ */ /* * Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -867,7 +867,8 @@ boot(int 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) { if (howto & RB_POWERDOWN) |