Re: [PATCH] Bluetooth: hci_conn: Fix memory leak in hci_le_big_terminate()
From: patchwork-bot+bluetooth
Date: Thu May 21 2026 - 11:56:46 EST
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>:
On Thu, 21 May 2026 04:04:14 -0400 you wrote:
> hci_le_big_terminate() allocates iso_list_data via kzalloc_obj but
> returns 0 without freeing it when neither pa_sync_term nor big_sync_term
> flags are set after evaluating the PA and BIG sync connection state.
>
> This early-return path was introduced when hci_le_big_terminate() was
> refactored to take struct hci_conn instead of raw u8 parameters, adding
> PA/BIG flag evaluation logic. The existing kfree() on hci_cmd_sync_queue
> failure does not cover this path.
>
> [...]
Here is the summary with links:
- Bluetooth: hci_conn: Fix memory leak in hci_le_big_terminate()
https://git.kernel.org/bluetooth/bluetooth-next/c/6dbf781d0885
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html