From c6440f72b6f3d2876908546838395669ba20a85c Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Thu, 6 Mar 2008 20:11:24 +0000 Subject: [PATCH] - Add a missing unlock to cpuset_setaffinity(CPU_LEVEL_CPUSET, CPU_WHICH_PID) Found by: gallatin --- sys/kern/kern_cpuset.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/kern/kern_cpuset.c b/sys/kern/kern_cpuset.c index dccb965489a7..e22cc8f32941 100644 --- a/sys/kern/kern_cpuset.c +++ b/sys/kern/kern_cpuset.c @@ -916,6 +916,7 @@ cpuset_setaffinity(struct thread *td, struct cpuset_setaffinity_args *uap) thread_lock(ttd); set = cpuset_ref(ttd->td_cpuset); thread_unlock(ttd); + PROC_UNLOCK(p); break; case CPU_WHICH_CPUSET: break;