aboutsummaryrefslogtreecommitdiff
path: root/cddl/usr.bin/ctfdump/ctfdump.1
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2022-04-21 17:22:09 +0000
committerMark Johnston <markj@FreeBSD.org>2022-04-28 00:34:17 +0000
commit46242829baa3c822b8e7376a71f1d0fa2be1c5c5 (patch)
tree86cbc26e9736c911d9035c949cce874cc8f3e8ab /cddl/usr.bin/ctfdump/ctfdump.1
parent3644b92099938b73a00bb483b9df44ae04b3a600 (diff)
downloadsrc-46242829baa3c822b8e7376a71f1d0fa2be1c5c5.tar.gz
src-46242829baa3c822b8e7376a71f1d0fa2be1c5c5.zip
mld6: Ensure that mld_domifattach() always succeeds
mld_domifattach() does a memory allocation under the global MLD mutex and so can fail, but no error handling prevents a null pointer dereference in this case. The mutex is only needed when updating the global softc list; the allocation and static initialization of the softc does not require this mutex. So, reduce the scope of the mutex and use M_WAITOK for the allocation. PR: 261457 Sponsored by: The FreeBSD Foundation (cherry picked from commit 5d691ab4f03d436d38f46777c3c117cf5a27f1bc)
Diffstat (limited to 'cddl/usr.bin/ctfdump/ctfdump.1')
0 files changed, 0 insertions, 0 deletions