1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

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

adlink device kthreads.
This commit is contained in:
John Baldwin 2004-03-05 22:41:22 +00:00
parent 4ae89b957c
commit 12dd6da62c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126673

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);
}