diff options
Diffstat (limited to 'sys/isa/syscons_isa.c')
-rw-r--r-- | sys/isa/syscons_isa.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/isa/syscons_isa.c b/sys/isa/syscons_isa.c index e0dcdba..6b257ab 100644 --- a/sys/isa/syscons_isa.c +++ b/sys/isa/syscons_isa.c @@ -141,10 +141,16 @@ scresume(device_t dev) sc = &main_softc; + if (sc->cur_scp == NULL) + return (0); + sc->suspend_in_progress--; - if (sc->suspend_in_progress == 0) + if (sc->suspend_in_progress == 0) { if (!sc_no_suspend_vtswitch && sc_cur_scr != 0) sc_switch_scr(sc, sc_cur_scr); + else + mark_all(sc->cur_scp); + } return (0); } |