Re: [PATCH 0/2] Bluetooth: btrtl: Don't return NULL from btrtl_initialize()

From: patchwork-bot+bluetooth

Date: Thu Nov 19 2026 - 13:50:13 EST


Hello:

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

On Sun, 15 Nov 2026 19:53:11 +0000 you wrote:
> btrtl_initialize() has two error paths that jump to err_free while
> 'ret' is still 0, so the function returns ERR_PTR(0), which is NULL.
> Both callers only check the result with IS_ERR() and then dereference
> the pointer.
>
> Patch 1 fixes the path taken when reading the RTL_SEC_PROJ register
> fails. It can be hit by a controller that times out or answers the
> vendor command with an error during setup.
>
> [...]

Here is the summary with links:
- [1/2] Bluetooth: btrtl: Return an error when reading the key id fails
https://git.kernel.org/bluetooth/bluetooth-next/c/c3cdaaa5cb5b
- [2/2] Bluetooth: btrtl: Set an error code when skb allocation fails
https://git.kernel.org/bluetooth/bluetooth-next/c/fc4527d1e1b6

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