]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211: mlme: Fix missing unlock on beacon RX
authorRafael Mendonca <rafaelmendsr@gmail.com>
Sat, 24 Sep 2022 18:40:41 +0000 (15:40 -0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 27 Sep 2022 08:33:51 +0000 (10:33 +0200)
commit158f5ee9a133d3411ca1beb9472826b315f7e12a
tree38e85cd1180ede7584b82ff36531ce5419731d24
parentdbb71a441c474605beea0eca3df05750d3624f42
wifi: mac80211: mlme: Fix missing unlock on beacon RX

Commit 5fe1941690ca ("wifi: mac80211: mlme: use correct link_sta")
switched to link station instead of deflink and added some checks to do
that, which are done with the 'sta_mtx' mutex held. However, the error
path of these checks does not unlock 'sta_mtx' before returning.

Fixes: 5fe1941690ca ("wifi: mac80211: mlme: use correct link_sta")
Signed-off-by: Rafael Mendonca <rafaelmendsr@gmail.com>
Link: https://lore.kernel.org/r/20220924184042.778676-1-rafaelmendsr@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c