Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Add missing IN6_ADDRLIST_ENTRY_DESTROY
details: https://anonhg.NetBSD.org/src/rev/a2d96e1be043
branches: trunk
changeset: 346299:a2d96e1be043
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Jul 06 07:52:53 2016 +0000
description:
Add missing IN6_ADDRLIST_ENTRY_DESTROY
diffstat:
sys/netinet6/in6.c | 6 ++++--
sys/netinet6/in6_var.h | 4 +++-
2 files changed, 7 insertions(+), 3 deletions(-)
diffs (45 lines):
diff -r d8e005d34287 -r a2d96e1be043 sys/netinet6/in6.c
--- a/sys/netinet6/in6.c Wed Jul 06 06:57:40 2016 +0000
+++ b/sys/netinet6/in6.c Wed Jul 06 07:52:53 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in6.c,v 1.204 2016/07/04 06:48:14 ozaki-r Exp $ */
+/* $NetBSD: in6.c,v 1.205 2016/07/06 07:52:53 ozaki-r Exp $ */
/* $KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $ */
/*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.204 2016/07/04 06:48:14 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.205 2016/07/06 07:52:53 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1353,6 +1353,8 @@
ifa_remove(ifp, &ia->ia_ifa);
IN6_ADDRLIST_WRITER_REMOVE(ia);
+ /* TODO psref_target_destroy */
+ IN6_ADDRLIST_ENTRY_DESTROY(ia);
/*
* XXX thorpej%NetBSD.org@localhost -- if the interface is going
diff -r d8e005d34287 -r a2d96e1be043 sys/netinet6/in6_var.h
--- a/sys/netinet6/in6_var.h Wed Jul 06 06:57:40 2016 +0000
+++ b/sys/netinet6/in6_var.h Wed Jul 06 07:52:53 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in6_var.h,v 1.79 2016/07/04 07:32:18 ozaki-r Exp $ */
+/* $NetBSD: in6_var.h,v 1.80 2016/07/06 07:52:53 ozaki-r Exp $ */
/* $KAME: in6_var.h,v 1.81 2002/06/08 11:16:51 itojun Exp $ */
/*
@@ -499,6 +499,8 @@
#define IN6_ADDRLIST_ENTRY_INIT(__ia) \
PSLIST_ENTRY_INIT((__ia), ia6_pslist_entry)
+#define IN6_ADDRLIST_ENTRY_DESTROY(__ia) \
+ PSLIST_ENTRY_DESTROY((__ia), ia6_pslist_entry)
#define IN6_ADDRLIST_READER_EMPTY() \
(PSLIST_READER_FIRST(&in6_ifaddr_list, struct in6_ifaddr, \
ia6_pslist_entry) == NULL)
Home |
Main Index |
Thread Index |
Old Index