Module Name: src
Committed By: ozaki-r
Date: Tue Oct 30 05:27:51 UTC 2018
Modified Files:
src/sys/net: if.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.437 -r1.438 src/sys/net/if.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.c
diff -u src/sys/net/if.c:1.437 src/sys/net/if.c:1.438
--- src/sys/net/if.c:1.437 Thu Oct 18 11:34:54 2018
+++ src/sys/net/if.c Tue Oct 30 05:27:51 2018
@@ -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 @@ ifa_psref_init(struct ifaddr *ifa)
void
ifaref(struct ifaddr *ifa)
{
- KASSERT(!ISSET(ifa->ifa_flags, IFA_DESTROYING));
+
ifa->ifa_refcnt++;
}