Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/dkwedge missed one exit path with the previous change.



details:   https://anonhg.NetBSD.org/src/rev/412d9e6d04d2
branches:  trunk
changeset: 345450:412d9e6d04d2
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun May 29 13:11:21 2016 +0000

description:
missed one exit path with the previous change.

diffstat:

 sys/dev/dkwedge/dk.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 0e87f6e4cf21 -r 412d9e6d04d2 sys/dev/dkwedge/dk.c
--- a/sys/dev/dkwedge/dk.c      Sun May 29 12:48:40 2016 +0000
+++ b/sys/dev/dkwedge/dk.c      Sun May 29 13:11:21 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dk.c,v 1.90 2016/05/29 12:48:40 mlelstv Exp $  */
+/*     $NetBSD: dk.c,v 1.91 2016/05/29 13:11:21 mlelstv Exp $  */
 
 /*-
  * Copyright (c) 2004, 2005, 2006, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.90 2016/05/29 12:48:40 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.91 2016/05/29 13:11:21 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_dkwedge.h"
@@ -545,7 +545,8 @@
        rc = 0;
        mutex_enter(&dk->dk_openlock);
        if (dk->dk_openmask == 0)
-               ;       /* nothing to do */
+               /* nothing to do */
+               mutex_exit(&dk->dk_openlock);
        else if ((flags & DETACH_FORCE) == 0) {
                rc = EBUSY;
                mutex_exit(&dk->dk_openlock);



Home | Main Index | Thread Index | Old Index