]> 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)
commitc25918174d41ec55c7c53e88f5e3f353fbbfadf4
treed8922afd70b013aefb9942d2f479a7f8c9e61fb6
parentdcbc6161292aa10ab6ecfc633aab5229004efc49
wifi: mac80211: fix potential deadlock in ieee80211_key_link()

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

Fixes: f8574900cf61 ("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