Source-Changes-HG archive

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

[src/trunk]: src/sys/net Kill remaining rt->rt_refcnt++



details:   https://anonhg.NetBSD.org/src/rev/bdc8e6b56970
branches:  trunk
changeset: 360885:bdc8e6b56970
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Thu Apr 05 03:39:14 2018 +0000

description:
Kill remaining rt->rt_refcnt++

diffstat:

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

diffs (27 lines):

diff -r f910068e019e -r bdc8e6b56970 sys/net/route.c
--- a/sys/net/route.c   Thu Apr 05 00:31:10 2018 +0000
+++ b/sys/net/route.c   Thu Apr 05 03:39:14 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.c,v 1.207 2018/03/23 04:09:41 ozaki-r Exp $      */
+/*     $NetBSD: route.c,v 1.208 2018/04/05 03:39:14 ozaki-r Exp $      */
 
 /*-
  * Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.207 2018/03/23 04:09:41 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.208 2018/04/05 03:39:14 ozaki-r Exp $");
 
 #include <sys/param.h>
 #ifdef RTFLUSH_DEBUG
@@ -2124,7 +2124,7 @@
                        RT_UNLOCK();
                        return;
                }
-               rt->rt_refcnt++;
+               rt_ref(rt);
                splx(s);
                RT_UNLOCK();
 



Home | Main Index | Thread Index | Old Index