]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r340257
authorvangyzen <vangyzen@FreeBSD.org>
Tue, 27 Nov 2018 19:40:18 +0000 (19:40 +0000)
committervangyzen <vangyzen@FreeBSD.org>
Tue, 27 Nov 2018 19:40:18 +0000 (19:40 +0000)
commit755e888e864c7bc17a03f337e73ae365f35f0f56
tree2246c710a5588e1fd27a66b6acfc1862bfa10f94
parentaa26fbc0ab5ec443370f5ff08278c896d1a7cd7e
MFC r340257

in6_ifattach_linklocal: handle immediate removal of the new LLA

If another thread immediately removes the link-local address
added by in6_update_ifa(), in6ifa_ifpforlinklocal() can return NULL,
so the following assertion (or dereference) is wrong.
Remove the assertion, and handle NULL somewhat better than panicking.
This matches all of the other callers of in6_update_ifa().

PR: 219250
Reviewed by: bz, dab (both an earlier version)
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D17898
sys/netinet6/in6_ifattach.c