Source-Changes-HG archive

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

[src/trunk]: src/sys/net Remove a wrong assertion in ifaref



details:   https://anonhg.NetBSD.org/src/rev/4191ff494c2a
branches:  trunk
changeset: 445447:4191ff494c2a
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Tue Oct 30 05:27:51 2018 +0000

description:
Remove a wrong assertion in ifaref

Doing ifref on an ifa with IFA_DESTROYING is not a problem; the reference should
be dropped during the destruction of the ifa.

diffstat:

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

diffs (27 lines):

diff -r 6fcf2b9e59c6 -r 4191ff494c2a sys/net/if.c
--- a/sys/net/if.c      Mon Oct 29 22:02:25 2018 +0000
+++ b/sys/net/if.c      Tue Oct 30 05:27:51 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.437 2018/10/18 11:34:54 knakahara Exp $       */
+/*     $NetBSD: if.c,v 1.438 2018/10/30 05:27:51 ozaki-r Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.437 2018/10/18 11:34:54 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.438 2018/10/30 05:27:51 ozaki-r Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -1783,7 +1783,7 @@
 void
 ifaref(struct ifaddr *ifa)
 {
-       KASSERT(!ISSET(ifa->ifa_flags, IFA_DESTROYING));
+
        ifa->ifa_refcnt++;
 }
 



Home | Main Index | Thread Index | Old Index