devqspi: fix qunlock error on stat() -> close()
This commit is contained in:
parent
fdfd856d1d
commit
431cbe35f6
|
@ -213,7 +213,7 @@ qspiopen(Chan* c, int omode)
|
|||
static void
|
||||
qspiclose(Chan* c)
|
||||
{
|
||||
if(c->qid.path == Qboot)
|
||||
if(c->qid.path == Qboot && (c->flag & COPEN) != 0)
|
||||
qunlock(&qspil);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue