diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-09-05 13:18:28 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-09-05 13:18:28 +0200 |
commit | 431cbe35f6a3f9c0c74d11937dfa7e06da34ecde (patch) | |
tree | aee79ff389063444f1c754f3d776d81253f09c06 /sys/src/9/zynq | |
parent | fdfd856d1d2ba158f25a18706571616aad472877 (diff) |
devqspi: fix qunlock error on stat() -> close()
Diffstat (limited to 'sys/src/9/zynq')
-rw-r--r-- | sys/src/9/zynq/devqspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/zynq/devqspi.c b/sys/src/9/zynq/devqspi.c index 01c9db301..fa0a4a5ae 100644 --- a/sys/src/9/zynq/devqspi.c +++ b/sys/src/9/zynq/devqspi.c @@ -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); } |