commit be320a82eeeeed047f80eae043750ed493d2fe76
parent 58765f070959d77396f94e89c5ff0af054434a5f
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sun, 18 Oct 2020 09:45:31 +0200
os9/dev: Lock channel in devattach()
This is a channel in use and it must be locked.
Change-Id: I9410ae37f9d20e0f0583a1f2ccfb687237950508
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/src/os9/dev/dev.c b/src/os9/dev/dev.c
@@ -215,7 +215,6 @@ devattach(int id, int dev)
return NULL;
c->dev = dev;
c->qid = QID(CHDIR, 0, 0);
- lock(c);
return c;
}