]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mac80211: fix memory leak in ieee80211_mgd_assoc_ml_reconf()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 15 Jan 2025 06:54:52 +0000 (09:54 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 15 Jan 2025 13:39:32 +0000 (14:39 +0100)
commita4058dc1e7b0051b2baf604fd9db8f1f7d529600
tree95180ffc5118951cf03551fbf59304d477006c8d
parent295adaf455bec573fd730b887a072d07861b03c0
wifi: mac80211: fix memory leak in ieee80211_mgd_assoc_ml_reconf()

Free the "data" allocation before returning on this error path.

Fixes: 36e05b0b8390 ("wifi: mac80211: Support dynamic link addition and removal")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/7ad826a7-7651-48e7-9589-7d2dc17417c2@stanley.mountain
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c