Protect all writers to ifm_cur with a mutex. ifmedia_match() does
authorbluhm <bluhm@openbsd.org>
Thu, 14 Jul 2022 13:46:24 +0000 (13:46 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 14 Jul 2022 13:46:24 +0000 (13:46 +0000)
commit566456819eeab3c855dd1dba674e689c3318cb0b
tree35ed7422d88d21ba18e71d603575860c90f48d9c
parent3b3f075aeaff569c28bd0de352a4c064102228ce
Protect all writers to ifm_cur with a mutex.  ifmedia_match() does
not return any pointers without lock anymore.
OK mvs@ mbuhl@
sys/dev/ic/if_wi.c
sys/net/if_media.c
sys/net/if_media.h