Source-Changes-HG archive

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

[src/trunk]: src/sys/net Add missing unlock



details:   https://anonhg.NetBSD.org/src/rev/f56354905fa1
branches:  trunk
changeset: 797585:f56354905fa1
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Jul 23 04:09:48 2014 +0000

description:
Add missing unlock

diffstat:

 sys/net/if_bridge.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 0ffe4895df40 -r f56354905fa1 sys/net/if_bridge.c
--- a/sys/net/if_bridge.c       Wed Jul 23 02:42:56 2014 +0000
+++ b/sys/net/if_bridge.c       Wed Jul 23 04:09:48 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bridge.c,v 1.88 2014/07/20 16:40:34 ozaki-r Exp $   */
+/*     $NetBSD: if_bridge.c,v 1.89 2014/07/23 04:09:48 ozaki-r Exp $   */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.88 2014/07/20 16:40:34 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.89 2014/07/23 04:09:48 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_bridge_ipf.h"
@@ -989,6 +989,7 @@
                count++;
 
        if (bifc->ifbic_len == 0) {
+               BRIDGE_UNLOCK(sc);
                bifc->ifbic_len = sizeof(breq) * count;
                return (0);
        }



Home | Main Index | Thread Index | Old Index