Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Don't forget to unlock the LWP.



details:   https://anonhg.NetBSD.org/src/rev/34ee8159d648
branches:  trunk
changeset: 339609:34ee8159d648
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu Jul 30 08:11:44 2015 +0000

description:
Don't forget to unlock the LWP.

ok rmind@

diffstat:

 sys/kern/sys_pset.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 32bae13d4a54 -r 34ee8159d648 sys/kern/sys_pset.c
--- a/sys/kern/sys_pset.c       Thu Jul 30 08:09:36 2015 +0000
+++ b/sys/kern/sys_pset.c       Thu Jul 30 08:11:44 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_pset.c,v 1.18 2014/02/25 18:30:11 pooka Exp $      */
+/*     $NetBSD: sys_pset.c,v 1.19 2015/07/30 08:11:44 maxv Exp $       */
 
 /*
  * Copyright (c) 2008, Mindaugas Rasiukevicius <rmind at NetBSD org>
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_pset.c,v 1.18 2014/02/25 18:30:11 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_pset.c,v 1.19 2015/07/30 08:11:44 maxv Exp $");
 
 #include <sys/param.h>
 
@@ -380,6 +380,7 @@
                                mutex_exit(&cpu_lock);
                                return EPERM;
                        }
+                       lwp_unlock(t);
                }
                /*
                 * Set the processor-set ID.



Home | Main Index | Thread Index | Old Index