Commit 2fcc593b authored by taozhang's avatar taozhang Committed by Greg Kroah-Hartman
Browse files

wifi: mac80211: fix memory free error when registering wiphy fail



[ 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: default avatartaozhang <taozhang@bestechnic.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 044bc6d3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment