mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 06:39:32 -04:00
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
e9a56ad5ca
commit
43834dfd27
2 changed files with 6 additions and 0 deletions
|
|
@ -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…
Reference in a new issue