Module Name: src
Committed By: kre
Date: Mon Aug 8 16:40:40 UTC 2016
Modified Files:
src/sys/net: if_tap.c
Log Message:
create++, destroy--
To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/sys/net/if_tap.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/net/if_tap.c
diff -u src/sys/net/if_tap.c:1.89 src/sys/net/if_tap.c:1.90
--- src/sys/net/if_tap.c:1.89 Mon Aug 8 09:51:39 2016
+++ src/sys/net/if_tap.c Mon Aug 8 16:40:39 2016
@@ -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 @@ tap_clone_destroy(struct ifnet *ifp)
int error = tap_clone_destroyer(sc->sc_dev);
if (error == 0)
- atomic_inc_uint(&tap_count);
+ atomic_dec_uint(&tap_count);
return error;
}