Pull up following revision(s) (requested by ozaki-r in ticket #1706):
sys/netinet6/in6_src.c: revision 1.92 in6: add missing rtcache_unref to in6_selectroute By default, this issue is harmless. However, if NET_MPSAFE is enabled, it could eventually lead to a kernel panic.
This commit is contained in:
parent
8bab746129
commit
0386f1a91f
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: in6_src.c,v 1.85.6.1 2021/08/11 17:22:17 martin Exp $ */
|
||||
/* $NetBSD: in6_src.c,v 1.85.6.2 2023/08/04 14:23:02 martin Exp $ */
|
||||
/* $KAME: in6_src.c,v 1.159 2005/10/19 01:40:32 t-momose Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -66,7 +66,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: in6_src.c,v 1.85.6.1 2021/08/11 17:22:17 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: in6_src.c,v 1.85.6.2 2023/08/04 14:23:02 martin Exp $");
|
||||
|
||||
#ifdef _KERNEL_OPT
|
||||
#include "opt_inet.h"
|
||||
|
@ -708,6 +708,7 @@ in6_selectroute(struct sockaddr_in6 *dstsock, struct ip6_pktopts *opts,
|
|||
if (count_discard)
|
||||
in6_ifstat_inc(rt->rt_ifp, ifs6_out_discard);
|
||||
error = EHOSTUNREACH;
|
||||
rtcache_unref(rt, *ro);
|
||||
rt = NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue