Re: [PATCH] Bluetooth: hci_uart: fix null-ptr-deref in hci_uart_write_work

From: patchwork-bot+bluetooth

Date: Wed Jan 21 2026 - 16:50:09 EST


Hello:

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

On Sun, 18 Jan 2026 20:08:59 +0800 you wrote:
> hci_uart_set_proto() sets HCI_UART_PROTO_INIT before calling
> hci_uart_register_dev(), which calls proto->open() to initialize
> hu->priv. However, if a TTY write wakeup occurs during this window,
> hci_uart_tx_wakeup() may schedule write_work before hu->priv is
> initialized, leading to a NULL pointer dereference in
> hci_uart_write_work() when proto->dequeue() accesses hu->priv.
>
> [...]

Here is the summary with links:
- Bluetooth: hci_uart: fix null-ptr-deref in hci_uart_write_work
https://git.kernel.org/bluetooth/bluetooth-next/c/1d8551ecf806

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