Re: [PATCH v2] Bluetooth: btqcomsmd: destroy RPMsg endpoints before freeing hci_dev

From: patchwork-bot+bluetooth

Date: Fri Sep 04 2026 - 13:19:42 EST


Hello:

This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>:

On Fri, 4 Sep 2026 10:54:57 +0800 you wrote:
> From: Xu Rao <raoxu@xxxxxxxxxxxxx>
>
> The command and ACL RPMsg endpoints store struct btqcomsmd as their
> callback private data. The receive callbacks dereference btq->hdev
> without taking an hci_dev reference.
>
> The current teardown order frees the hci_dev before destroying the RPMsg
> endpoints in both the hci_register_dev() error path and the driver remove
> path. If WCNSS delivers data in that window, the endpoint callback can
> run with an already freed hci_dev and pass it to the Bluetooth core.
>
> [...]

Here is the summary with links:
- [v2] Bluetooth: btqcomsmd: destroy RPMsg endpoints before freeing hci_dev
https://git.kernel.org/bluetooth/bluetooth-next/c/b3850074b2c4

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html