Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/booke Added missing mutex_exit() at error p...



details:   https://anonhg.NetBSD.org/src/rev/186a19a228ac
branches:  trunk
changeset: 805111:186a19a228ac
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Fri Dec 19 03:51:38 2014 +0000

description:
Added missing mutex_exit() at error path.

diffstat:

 sys/arch/powerpc/booke/e500_intr.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 942880b81248 -r 186a19a228ac sys/arch/powerpc/booke/e500_intr.c
--- a/sys/arch/powerpc/booke/e500_intr.c        Fri Dec 19 03:46:23 2014 +0000
+++ b/sys/arch/powerpc/booke/e500_intr.c        Fri Dec 19 03:51:38 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: e500_intr.c,v 1.24 2014/05/19 22:47:53 rmind Exp $     */
+/*     $NetBSD: e500_intr.c,v 1.25 2014/12/19 03:51:38 nonaka Exp $    */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -39,7 +39,7 @@
 #define __INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: e500_intr.c,v 1.24 2014/05/19 22:47:53 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: e500_intr.c,v 1.25 2014/12/19 03:51:38 nonaka Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -713,8 +713,10 @@
 
        struct intr_source * const is = &e500_intr_sources[ii.irq_vector];
        mutex_enter(&e500_intr_lock);
-       if (is->is_ipl != IPL_NONE)
+       if (is->is_ipl != IPL_NONE) {
+               mutex_exit(&e500_intr_lock);
                return NULL;
+       }
 
        is->is_func = handler;
        is->is_arg = arg;



Home | Main Index | Thread Index | Old Index