9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 7a8b524c36e25e4a5ccfa21f80ebdb5bfb7268d6
parent f5398ca09c6f2e047535f27cda2a6bdff3c3c509
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:
Msrc/os9/dev/dev.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/os9/dev/dev.c b/src/os9/dev/dev.c @@ -215,6 +215,7 @@ devattach(int id, int dev) return NULL; c->dev = dev; c->qid = QID(CHDIR, 0, 0); + lock(c); return c; }