summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/adlink/adlink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/adlink/adlink.c b/sys/dev/adlink/adlink.c
index f8a7253..a66ccf5 100644
--- a/sys/dev/adlink/adlink.c
+++ b/sys/dev/adlink/adlink.c
@@ -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);
}
OpenPOWER on IntegriCloud