summaryrefslogtreecommitdiffstats
path: root/sys/netncp
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netncp')
-rw-r--r--sys/netncp/ncp_subr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netncp/ncp_subr.c b/sys/netncp/ncp_subr.c
index c15b985..b213733 100644
--- a/sys/netncp/ncp_subr.c
+++ b/sys/netncp/ncp_subr.c
@@ -85,6 +85,7 @@ ncp_at_exit(void *arg, struct proc *p)
struct ncp_conn *ncp, *nncp;
struct thread *td;
+ mtx_lock(&Giant);
FOREACH_THREAD_IN_PROC(p, td) {
if (ncp_conn_putprochandles(td) == 0)
continue;
@@ -100,6 +101,7 @@ ncp_at_exit(void *arg, struct proc *p)
}
ncp_conn_unlocklist(td);
}
+ mtx_unlock(&Giant);
}
int
OpenPOWER on IntegriCloud