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)
commit50b2e8711462409cd368c41067405aa446dfa2af
tree6fe7272395d85c75049e953509bc5df5a3e3f9d4
parent03c0ad4b06c3566de624b4f4b78ac1a5d1e4c8e7
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