Commit 0edf1551 authored by taozhang's avatar taozhang Committed by sanglipeng
Browse files

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