shithub: riscv

Download patch

ref: 431cbe35f6a3f9c0c74d11937dfa7e06da34ecde
parent: fdfd856d1d2ba158f25a18706571616aad472877
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Sep 5 09:18:28 EDT 2015

devqspi: fix qunlock error on stat() -> close()

--- a/sys/src/9/zynq/devqspi.c
+++ b/sys/src/9/zynq/devqspi.c
@@ -213,7 +213,7 @@
 static void
 qspiclose(Chan* c)
 {
-	if(c->qid.path == Qboot)
+	if(c->qid.path == Qboot && (c->flag & COPEN) != 0)
 		qunlock(&qspil);
 }