]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: cw1200: Fix potential memory leak in cw1200_bh_rx_helper()
authorAbdun Nihaal <nihaal@cse.iitm.ac.in>
Mon, 10 Nov 2025 17:53:15 +0000 (23:23 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 12:54:57 +0000 (13:54 +0100)
commit199c3a2725add2a1b72c9b020e1cbedd04f611d6
treec68c01b137d42f5d49f43a079712253b4b8240c7
parent230621ffdb361d15cd3ef92d8b4fa8d314f4fad4
wifi: cw1200: Fix potential memory leak in cw1200_bh_rx_helper()

[ Upstream commit 5e88e864118c20e63a1571d0ff0a152e5d684959 ]

In one of the error paths, the memory allocated for skb_rx is not freed.
Fix that by freeing it before returning.

Fixes: a910e4a94f69 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets")
Signed-off-by: Abdun Nihaal <nihaal@cse.iitm.ac.in>
Link: https://patch.msgid.link/20251110175316.106591-1-nihaal@cse.iitm.ac.in
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/st/cw1200/bh.c