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
This commit is contained in:
parent
9bc938e5c5
commit
f56081fa70
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user