Re: [PATCH] Bluetooth: btrtl: Don't leak return code when parsing firmware format v2

From: patchwork-bot+bluetooth

Date: Thu Sep 03 2026 - 16:03:25 EST


Hello:

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

On Thu, 03 Sep 2026 03:18:59 +0800 you wrote:
> When key_id from chip is zero, rtlbt_parse_firmware_v2() intentionally
> ignores all security headers. However, the implementation simply breaks
> from a switch statement and leaks uninitialized return code `rc' (if the
> first section is a security one) or the previous section's `rc'.
>
> Fix it by really skipping a loop with `continue'. For consistency and
> readability, also do the same for the default case.
>
> [...]

Here is the summary with links:
- Bluetooth: btrtl: Don't leak return code when parsing firmware format v2
https://git.kernel.org/bluetooth/bluetooth-next/c/0aab041d532f

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