Don't take netlock while setting `if_description'.
authormvs <mvs@openbsd.org>
Mon, 9 Sep 2024 07:37:47 +0000 (07:37 +0000)
committermvs <mvs@openbsd.org>
Mon, 9 Sep 2024 07:37:47 +0000 (07:37 +0000)
commitefb6c398e3b486ca435786077d7480e836780ede
tree11e42be58f9096ae933373567edbd09054c7ad80
parent2402a19bf8525145150f9a650f22203f3182cd12
Don't take netlock while setting `if_description'.

net/if_pppx.c is the only place where `if_description' accessed outside
ifioctl() path and there is no reason to take netlock here. SIOCSIFDESCR
case of ifioctl() modifies `if_description' with the only kernel lock.

ok bluhm
sys/net/if_pppx.c