Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Unlock correct mutex in an error path.



details:   https://anonhg.NetBSD.org/src/rev/0720c512b794
branches:  trunk
changeset: 326681:0720c512b794
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Feb 12 20:20:15 2014 +0000

description:
Unlock correct mutex in an error path.
PR kern/48592 from Kengo NAKAHARA.

diffstat:

 sys/kern/subr_cpufreq.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4e1485ec3a08 -r 0720c512b794 sys/kern/subr_cpufreq.c
--- a/sys/kern/subr_cpufreq.c   Wed Feb 12 19:53:49 2014 +0000
+++ b/sys/kern/subr_cpufreq.c   Wed Feb 12 20:20:15 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_cpufreq.c,v 1.8 2011/10/27 05:25:07 jruoho Exp $ */
+/*     $NetBSD: subr_cpufreq.c,v 1.9 2014/02/12 20:20:15 martin Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_cpufreq.c,v 1.8 2011/10/27 05:25:07 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_cpufreq.c,v 1.9 2014/02/12 20:20:15 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -361,7 +361,7 @@
        }
 
        if (index >= cf->cf_state_count) {
-               mutex_exit(&cpu_lock);
+               mutex_exit(&cpufreq_lock);
                return EINVAL;
        }
 



Home | Main Index | Thread Index | Old Index