Re: [PATCH v5] Bluetooth: fix memory leak in error path of hci_alloc_dev()
From: patchwork-bot+bluetooth
Date: Mon Jun 01 2026 - 15:10:27 EST
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>:
On Mon, 1 Jun 2026 08:54:26 +0530 you wrote:
> Early failures in Bluetooth HCI UART configuration leak SRCU percpu
> memory.
>
> When device initialization fails before hci_register_dev() completes,
> the HCI_UNREGISTER flag is never set. As a result, when the device
> reference count reaches zero, bt_host_release() evaluates this flag as
> false and falls back to a direct kfree(hdev).
>
> [...]
Here is the summary with links:
- [v5] Bluetooth: fix memory leak in error path of hci_alloc_dev()
https://git.kernel.org/bluetooth/bluetooth-next/c/cf767a2d88f7
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html