]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r364072, r364073 and r364102:
authorHans Petter Selasky <hselasky@FreeBSD.org>
Wed, 19 Aug 2020 13:23:52 +0000 (13:23 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Wed, 19 Aug 2020 13:23:52 +0000 (13:23 +0000)
commit5b112f4b1bb8df7b323d32016488f5ba0ab1f549
tree8e21d1e8d40aabb9fda65bcf6180d15e42774025
parent898a95874a5bde996e5e3455d62aa3e5f927b7c1
MFC r364072, r364073 and r364102:
Use proper prototype for SYSINIT() functions.
Mark the unused argument using the __unused macro.

Make sure the multicast release tasks are properly drained when
destroying a VNET or a network interface.

Else the inm release tasks, both IPv4 and IPv6 may cause a panic
accessing a freed VNET or network interface.

Use a static initializer for the multicast free tasks.
This makes the SYSINIT() function updated in r364072 superfluous.

Differential Revision: https://reviews.freebsd.org/D24914
Sponsored by: Mellanox Technologies
sys/netinet/in.c
sys/netinet/in_mcast.c
sys/netinet/in_var.h
sys/netinet6/in6_ifattach.c
sys/netinet6/in6_mcast.c
sys/netinet6/in6_var.h