Module Name: src Committed By: christos Date: Mon May 9 15:05:15 UTC 2016
Modified Files: src/sys/net: if_vlan.c Log Message: Don't increment the reference count only when it was 0... >From Jean-Jacques.Puig To generate a diff of this commit: cvs rdiff -u -r1.87 -r1.88 src/sys/net/if_vlan.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_vlan.c diff -u src/sys/net/if_vlan.c:1.87 src/sys/net/if_vlan.c:1.88 --- src/sys/net/if_vlan.c:1.87 Wed Apr 27 21:37:17 2016 +++ src/sys/net/if_vlan.c Mon May 9 11:05:15 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: if_vlan.c,v 1.87 2016/04/28 01:37:17 knakahara Exp $ */ +/* $NetBSD: if_vlan.c,v 1.88 2016/05/09 15:05:15 christos Exp $ */ /*- * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc. @@ -78,7 +78,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.87 2016/04/28 01:37:17 knakahara Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.88 2016/05/09 15:05:15 christos Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -300,8 +300,8 @@ vlan_config(struct ifvlan *ifv, struct i */ ifv->ifv_mtufudge = ifv->ifv_encaplen; } - ec->ec_nvlans++; } + ec->ec_nvlans++; /* * If the parent interface can do hardware-assisted