Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Don't increment the reference count only when it was...
details: https://anonhg.NetBSD.org/src/rev/ffd5220e004b
branches: trunk
changeset: 815274:ffd5220e004b
user: christos <christos%NetBSD.org@localhost>
date: Mon May 09 15:05:15 2016 +0000
description:
Don't increment the reference count only when it was 0...
>From Jean-Jacques.Puig
diffstat:
sys/net/if_vlan.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 2f70edcee4ff -r ffd5220e004b sys/net/if_vlan.c
--- a/sys/net/if_vlan.c Mon May 09 10:21:42 2016 +0000
+++ b/sys/net/if_vlan.c Mon May 09 15:05:15 2016 +0000
@@ -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 @@
*/
ifv->ifv_mtufudge = ifv->ifv_encaplen;
}
- ec->ec_nvlans++;
}
+ ec->ec_nvlans++;
/*
* If the parent interface can do hardware-assisted
Home |
Main Index |
Thread Index |
Old Index