]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtw89: fix potential leak in rtw89_append_probe_req_ie()
authorZong-Zhe Yang <kevin_yang@realtek.com>
Tue, 3 Jan 2023 14:10:54 +0000 (22:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:32:54 +0000 (09:32 +0100)
commit1e336d6bab68973084a18c1e4bd78cd0bbbdcacd
treef1fa0146777d46c239a8192934bff1b9a7f36b86
parentde92beb63a4b1b3ff01f747145e7f3a03774220a
wifi: rtw89: fix potential leak in rtw89_append_probe_req_ie()

[ Upstream commit 4a0e218cc9c42d1903ade8b5a371dcf48cf918c5 ]

Do `kfree_skb(new)` before `goto out` to prevent potential leak.

Fixes: 895907779752 ("rtw89: 8852a: add ieee80211_ops::hw_scan")
Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230103141054.17372-1-pkshih@realtek.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/realtek/rtw89/fw.c