Source-Changes-HG archive

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

[src/trunk]: src/sys/net create++, destroy--



details:   https://anonhg.NetBSD.org/src/rev/7489f42f923e
branches:  trunk
changeset: 817122:7489f42f923e
user:      kre <kre%NetBSD.org@localhost>
date:      Mon Aug 08 16:40:39 2016 +0000

description:
create++, destroy--

diffstat:

 sys/net/if_tap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f8bec15bc45d -r 7489f42f923e sys/net/if_tap.c
--- a/sys/net/if_tap.c  Mon Aug 08 16:31:53 2016 +0000
+++ b/sys/net/if_tap.c  Mon Aug 08 16:40:39 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_tap.c,v 1.89 2016/08/08 09:51:39 pgoyette Exp $     */
+/*     $NetBSD: if_tap.c,v 1.90 2016/08/08 16:40:39 kre Exp $  */
 
 /*
  *  Copyright (c) 2003, 2004, 2008, 2009 The NetBSD Foundation.
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.89 2016/08/08 09:51:39 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.90 2016/08/08 16:40:39 kre Exp $");
 
 #if defined(_KERNEL_OPT)
 
@@ -707,7 +707,7 @@
        int error = tap_clone_destroyer(sc->sc_dev);
 
        if (error == 0)
-               atomic_inc_uint(&tap_count);
+               atomic_dec_uint(&tap_count);
        return error;
 }
 



Home | Main Index | Thread Index | Old Index