mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Lock Giant around the body of the adlink_loran() function used by the
adlink device kthreads.
This commit is contained in:
parent
4ae89b957c
commit
12dd6da62c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126673
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user