]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: cfg80211: sme: store capped length in __cfg80211_connect_result()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 3 Dec 2025 11:14:47 +0000 (14:14 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:14:31 +0000 (10:14 +0100)
commit0c67efb56d045c86d8f15b124d5a5abb2b9dd9cf
tree2218a2192d135a1a82135f4c46a116a4a2fc7426
parent9765d6eb8298b07d499cdf9ef7c237d3540102d6
wifi: cfg80211: sme: store capped length in __cfg80211_connect_result()

[ Upstream commit 2b77b9551d1184cb5af8271ff350e6e2c1b3db0d ]

The QGenie AI code review tool says we should store the capped length to
wdev->u.client.ssid_len.  The AI is correct.

Fixes: 62b635dcd69c ("wifi: cfg80211: sme: cap SSID length in __cfg80211_connect_result()")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aTAbp5RleyH_lnZE@stanley.mountain
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/sme.c