Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/netinet6 Pull up following revision(s) (requested by ...
details: https://anonhg.NetBSD.org/src/rev/b289ba89d08b
branches: netbsd-8
changeset: 985356:b289ba89d08b
user: martin <martin%NetBSD.org@localhost>
date: Fri Aug 20 19:34:49 2021 +0000
description:
Pull up following revision(s) (requested by ozaki-r in ticket #1692):
sys/netinet6/nd6.c: revision 1.277
nd6: prevent ln from being freed while releasing held packets
diffstat:
sys/netinet6/nd6.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r de60daed3e3b -r b289ba89d08b sys/netinet6/nd6.c
--- a/sys/netinet6/nd6.c Sun Aug 15 10:04:53 2021 +0000
+++ b/sys/netinet6/nd6.c Fri Aug 20 19:34:49 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nd6.c,v 1.232.2.13 2019/09/30 15:48:45 martin Exp $ */
+/* $NetBSD: nd6.c,v 1.232.2.14 2021/08/20 19:34:49 martin Exp $ */
/* $KAME: nd6.c,v 1.279 2002/06/08 11:16:51 itojun Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.232.2.13 2019/09/30 15:48:45 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.232.2.14 2021/08/20 19:34:49 martin Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@@ -2014,6 +2014,7 @@
m_hold = ln->la_hold, ln->la_hold = NULL, ln->la_numheld = 0;
+ LLE_ADDREF(ln);
LLE_WUNLOCK(ln);
for (; m_hold != NULL; m_hold = m_hold_next) {
m_hold_next = m_hold->m_nextpkt;
@@ -2027,6 +2028,7 @@
ip6_if_output(ifp, ifp, m_hold, &sin6, NULL);
}
LLE_WLOCK(ln);
+ LLE_REMREF(ln);
}
/*
Home |
Main Index |
Thread Index |
Old Index