shithub: riscv

Download patch

ref: 1dcf853fc0439e7726d3a3f10678b1340b3592e5
parent: 5d2bffc26f8227530597aa3e9160f516ffe181cf
author: cinap_lenrek <[email protected]>
date: Wed Nov 21 16:48:55 EST 2018

upas/fs: checkfid() might be called with uninitialized fid, ignore

--- a/sys/src/cmd/upas/fs/fs.c
+++ b/sys/src/cmd/upas/fs/fs.c
@@ -1329,6 +1329,7 @@
 static Fid*
 checkfid(Fid *f)
 {
+	if(f->busy)
 	switch(FILE(f->qid.path)){
 	case Qtop:
 	case Qctl: