Lock Giant around the body of the adlink_loran() function used by the

adlink device kthreads.
This commit is contained in:
jhb 2004-03-05 22:41:22 +00:00
parent 4e1bd1e348
commit 6ee273fcd7

View File

@ -221,6 +221,7 @@ adlink_loran(void *arg)
sc = arg;
idx = 0;
mtx_lock(&Giant);
for (;;) {
while (sc->stat[idx] == 0)
msleep(sc, NULL, PRIBIO, "loran", 1);
@ -234,6 +235,7 @@ adlink_loran(void *arg)
idx++;
idx %= NRING;
}
mtx_unlock(&Giant);
kthread_exit(0);
}