summaryrefslogtreecommitdiffstats
path: root/sys/i386/bios
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>1999-09-20 15:29:23 +0000
committeriwasaki <iwasaki@FreeBSD.org>1999-09-20 15:29:23 +0000
commitf56081fa700df2d5a267e1aac0da2505467a9c7a (patch)
tree85287c8f339c23915bb0172f48813a7f97e6d6f0 /sys/i386/bios
parent9bc938e5c504726347763bf8eb4fc058ff930a42 (diff)
downloadFreeBSD-src-f56081fa700df2d5a267e1aac0da2505467a9c7a.zip
FreeBSD-src-f56081fa700df2d5a267e1aac0da2505467a9c7a.tar.gz
Return immediately from apm_suspend() when APM BIOS wasn't initialized.
Pressing Alt-Pause key will cause machine to reboot with apm disabled. PR: i386/13817 Submitted by: yokota
Diffstat (limited to 'sys/i386/bios')
-rw-r--r--sys/i386/bios/apm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c
index 85d8eed..620da58 100644
--- a/sys/i386/bios/apm.c
+++ b/sys/i386/bios/apm.c
@@ -581,6 +581,9 @@ apm_suspend(int state)
{
struct apm_softc *sc = &apm_softc;
+ if (!sc->initialized)
+ return;
+
switch (state) {
case PMST_SUSPEND:
if (sc->suspends)
OpenPOWER on IntegriCloud