Module Name:    src
Committed By:   matt
Date:           Wed Oct 17 20:45:49 UTC 2012

Modified Files:
        src/sys/arch/arm/cortex: pl310.c

Log Message:
Add a missing mutex exit.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/arm/cortex/pl310.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/cortex/pl310.c
diff -u src/sys/arch/arm/cortex/pl310.c:1.6 src/sys/arch/arm/cortex/pl310.c:1.7
--- src/sys/arch/arm/cortex/pl310.c:1.6	Sat Sep 22 00:33:37 2012
+++ src/sys/arch/arm/cortex/pl310.c	Wed Oct 17 20:45:49 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: pl310.c,v 1.6 2012/09/22 00:33:37 matt Exp $	*/
+/*	$NetBSD: pl310.c,v 1.7 2012/10/17 20:45:49 matt Exp $	*/
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pl310.c,v 1.6 2012/09/22 00:33:37 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pl310.c,v 1.7 2012/10/17 20:45:49 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -289,8 +289,10 @@ arml2cc_cache_range_op(paddr_t pa, psize
 		psize_t seglen = min(len, PAGE_SIZE - off);
 
 		mutex_spin_enter(&sc->sc_lock);
-		if (!sc->sc_enabled)
+		if (!sc->sc_enabled) {
+			mutex_spin_exit(&sc->sc_lock);
 			return;
+		}
 		for (paddr_t segend = pa + seglen; pa < segend; pa += line_size) {
 			arml2cc_cache_op(sc, cache_op, pa);
 		}

Reply via email to