Commit bb9df91c authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Johannes Berg
Browse files

wifi: cfg80211: Fix an error handling path in nl80211_start_ap()



All error handling paths go to "out", except this one. Before the
commit in Fixes, error in the previous code would also end to "out",
freeing the memory.

Move the code up to avoid the leak.

Fixes: 62262dd0 ("wifi: cfg80211: disallow SMPS in AP mode")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/eae54ce066d541914f272b10cab7b263c08eced3.1729956868.git.christophe.jaillet@wanadoo.fr


[move code, update commit message]
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 9c46a3a5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment