wifi: mac80211: fix memory free error when registering wiphy fail
stable inclusion from stable-v5.10.157 commit 2fcc593b5047183a2b0ed4e4c41ec1e911874911 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I7MU59 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2fcc593b5047183a2b0ed4e4c41ec1e911874911 -------------------------------- [ Upstream commit 50b2e871 ] 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> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment