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/f6f3297762a4
branches:  trunk
changeset: 815592:f6f3297762a4
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 bf494c6f15bd -r f6f3297762a4 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