shithub: riscv

Download patch

ref: 837918ee5e391fc0429654135c4a828f96f6bc3d
parent: f37ee95fbcd5d837c4eff29e7feb5a999420dae2
author: cinap_lenrek <[email protected]>
date: Fri Nov 1 17:28:03 EDT 2013

rio: add sanity check in xfidallocthread()

--- a/sys/src/cmd/rio/xfid.c
+++ b/sys/src/cmd/rio/xfid.c
@@ -70,6 +70,8 @@
 				fprint(2, "%p incref %ld\n", x, x->ref);
 				error("incref");
 			}
+			if(x->flushing)
+				error("flushing in allocate");
 			if(x->flushtag != -1)
 				error("flushtag in allocate");
 			incref(x);