]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: cfg80211: Fix an error handling path in cfg80211_wext_siwscan()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 20 Jun 2026 19:48:56 +0000 (21:48 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 6 Jul 2026 12:11:06 +0000 (14:11 +0200)
commitc6659f66d4ee4841aafae5659d2ef5e4c5c63cb6
tree5ee4d2b7b37d80a6b0bae2b1ac29fea1663197eb
parent0d388f62031dbabcba0f44bb91b59f10e88cac17
wifi: cfg80211: Fix an error handling path in cfg80211_wext_siwscan()

If the test against IEEE80211_MAX_SSID_LEN fails, then 'creq' leaks.
Use the existing error handling path to fix it.

Fixes: 2a5193119269 ("cfg80211/nl80211: scanning (and mac80211 update to use it)")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/a1be7eea4da0da18f90589af252bb76a18a61978.1781984889.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c