]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211: fix memory free error when registering wiphy fail
authortaozhang <taozhang@bestechnic.com>
Sat, 15 Oct 2022 09:38:31 +0000 (17:38 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 21 Oct 2022 10:34:59 +0000 (12:34 +0200)
commitfcf8ef264a5b45ff978dedb2e3cd226e977bdf85
tree6fe7272395d85c75049e953509bc5df5a3e3f9d4
parentf86387dfb108d1d75a51f5bb9ca326b0cda1b929
wifi: mac80211: fix memory free error when registering wiphy fail

ieee80211_register_hw free the allocated cipher suites when
registering wiphy fail, and ieee80211_free_hw will re-free it.

set wiphy_ciphers_allocated to false after freeing allocated
cipher suites.

Signed-off-by: taozhang <taozhang@bestechnic.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/main.c