shithub: riscv

Download patch

ref: 1a82d677702d0a16c6c6ea2f4cc2325c24a4a570
parent: b25e48b949ad5be3429ad254b83bce59c063e149
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Tue Aug 23 02:11:16 EDT 2011

vgavesa: fix race

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