diff --git a/sys/src/9/pc/vgavesa.c b/sys/src/9/pc/vgavesa.c index 9a260907f..8c4c5f9c5 100644 --- a/sys/src/9/pc/vgavesa.c +++ b/sys/src/9/pc/vgavesa.c @@ -265,6 +265,10 @@ vesadisable(VGAscr *) { vesactl = Cdisable; wakeup(&vesar); + + /* wait for vesaproc to finish */ + qlock(&vesaq); + qunlock(&vesaq); } static void