]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
net80211: make sure calls to (*iv_update_bss)() are locked
authorBjoern A. Zeeb <bz@FreeBSD.org>
Fri, 19 Jan 2024 14:52:03 +0000 (14:52 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 19 Feb 2024 16:07:13 +0000 (16:07 +0000)
commiteecf453c0e56c179539756212977456c9561c71c
tree8502d21ebb65af752ab6b9a3419fedee047d40ad
parentf7c8d5448446a470baaca560f91c884e5ceeecc7
net80211: make sure calls to (*iv_update_bss)() are locked

It turned out thare various calls into (*iv_update_bss)(), that is
direct changes to vap->iv_bss in the old days, happened without
synchronisation.

Use locking assertions to document the requirement or status quo
at some callers given ic locking will eventually have to be dealt
with.

Approved by: re (cperciva)
Reviewed by: cc
Differential Revision: https://reviews.freebsd.org/D43512

(cherry picked from commit 49619f73151aeaca4cef5adf631253da04a46e19)
(cherry picked from commit f8ec0379435745d800ec149f9289401c792e61bb)
sys/net80211/ieee80211_node.c
sys/net80211/ieee80211_proto.c