]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: btusb: Fix memory leak
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 28 Feb 2024 16:17:24 +0000 (11:17 -0500)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:38 +0000 (18:19 -0400)
commit620b9e60e4b55fa55540ce852a0f3c9e6091dbbc
treeccf044043d6d31e96fe6c6df2a464207aada1932
parent98e9920c75e0790bff947a00d192d24bf1c724e0
Bluetooth: btusb: Fix memory leak

[ Upstream commit 79f4127a502c5905f04da1f20a7bbe07103fb77c ]

This checks if CONFIG_DEV_COREDUMP is enabled before attempting to clone
the skb and also make sure btmtk_process_coredump frees the skb passed
following the same logic.

Fixes: 0b7015132878 ("Bluetooth: btusb: mediatek: add MediaTek devcoredump support")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bluetooth/btmtk.c
drivers/bluetooth/btusb.c