Skip to contentSkip to conversation

drivers: bluetooth: fix uninitialized scalar variable

PATCH In review Alonso Garrigues 2 participants 2 messages Apr 25 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: bluetooth: fix uninitialized scalar variable

There is a path where the variable is read uninitialized, in case RTL_PATCH_SECURITY_HEADER and !key_id

---
 drivers/bluetooth/btrtl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bluetooth/btrtl.c +1 -1
index 62f9d4df3a4f..aa0d5af26b5f 100644
@@ -543,7 +543,7 @@ static int rtlbt_parse_firmware_v2(struct hci_dev *hdev,
 				   unsigned char **_buf)
 {
 	struct rtl_epatch_header_v2 *hdr;
-	int rc;
+	int rc = 0;
 	u8 key_id;
 	u32 num_sections;
 	struct rtl_section *section;
Signature · 1 line
2.53.0
#1 lore raw

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1085521

---Test result---

Test Summary:

CheckPatch                    PASS      0.57 seconds
GitLint                       PASS      0.25 seconds
SubjectPrefix                 FAIL      0.08 seconds
BuildKernel                   PASS      27.12 seconds
CheckAllWarning               PASS      29.39 seconds
CheckSparse                   PASS      28.56 seconds
BuildKernel32                 PASS      26.28 seconds
TestRunnerSetup               PASS      567.61 seconds
IncrementalBuild              PASS      24.54 seconds

Details
##############################
Test: SubjectPrefix - FAIL
Desc: Check subject contains "Bluetooth" prefix Output:
"Bluetooth: " prefix is not specified in the subject

https://github.com/bluez/bluetooth-next/pull/125

---
Regards,
Linux Bluetooth