]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211: fix potential deadlock in ieee80211_key_link()
authorSun Ke <sunke32@huawei.com>
Sat, 27 Aug 2022 02:24:52 +0000 (10:24 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 29 Aug 2022 09:48:59 +0000 (11:48 +0200)
commit920106bcc10f8ac9689d456611524b7b36c2da17
treed8922afd70b013aefb9942d2f479a7f8c9e61fb6
parent9147daf4af10f66f2eba50a2e80ba21d10b69ecf
wifi: mac80211: fix potential deadlock in ieee80211_key_link()

Add the missing unlock before return in the error handling case.

Fixes: cafb02593834 ("wifi: mac80211: properly implement MLO key handling")
Signed-off-by: Sun Ke <sunke32@huawei.com>
Link: https://lore.kernel.org/r/20220827022452.823381-1-sunke32@huawei.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/key.c