summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorRong Zhang <i@rong.moe>2026-09-03 03:18:59 +0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-09-08 17:04:10 -0400
commit83e3e515fd261600ed8491fb0a8bcdfb115c904e (patch)
treed8ecda1d3face97256554af59eb2287ee05153d5 /tools/lib/python/kdoc/python_version.py
parent1c12c3117639e78940959d956519c758c57d0849 (diff)
Bluetooth: btrtl: Don't leak return code when parsing firmware format v2
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. Fixes: 9a24ce5e29b1 ("Bluetooth: btrtl: Firmware format v2 support") Cc: stable@vger.kernel.org Signed-off-by: Rong Zhang <i@rong.moe> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions