Message ID | 20211113023559.212793-1-hj.tedd.an@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Luiz Von Dentz |
Headers | show |
Series | [BlueZ,1/3] emulator: Fix uninitiailzed scalar variable | expand |
Context | Check | Description |
---|---|---|
tedd_an/checkpatch | success | Checkpatch PASS |
tedd_an/gitlint | success | Gitlint PASS |
tedd_an/setupell | success | Setup ELL PASS |
tedd_an/buildprep | success | Build Prep PASS |
tedd_an/build | success | Build Configuration PASS |
tedd_an/makecheck | success | Make Check PASS |
tedd_an/makedistcheck | success | Make Distcheck PASS |
tedd_an/build_extell | success | Build External ELL PASS |
tedd_an/build_extell_make | success | Build Make with External ELL PASS |
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=579489 ---Test result--- Test Summary: CheckPatch PASS 3.70 seconds GitLint PASS 2.48 seconds Prep - Setup ELL PASS 44.05 seconds Build - Prep PASS 0.48 seconds Build - Configure PASS 8.20 seconds Build - Make PASS 185.97 seconds Make Check PASS 9.37 seconds Make Distcheck PASS 228.10 seconds Build w/ext ELL - Configure PASS 8.27 seconds Build w/ext ELL - Make PASS 175.09 seconds --- Regards, Linux Bluetooth
diff --git a/emulator/bthost.c b/emulator/bthost.c index 61f1cd361..66e337f34 100644 --- a/emulator/bthost.c +++ b/emulator/bthost.c @@ -1570,6 +1570,7 @@ static void rfcomm_sabm_send(struct bthost *bthost, struct btconn *conn, { struct rfcomm_cmd cmd; + memset(&cmd, 0, sizeof(cmd)); cmd.address = RFCOMM_ADDR(cr, dlci); cmd.control = RFCOMM_CTRL(RFCOMM_SABM, 1); cmd.length = RFCOMM_LEN8(0); @@ -2123,6 +2124,7 @@ static void rfcomm_ua_send(struct bthost *bthost, struct btconn *conn, { struct rfcomm_cmd cmd; + memset(&cmd, 0, sizeof(cmd)); cmd.address = RFCOMM_ADDR(cr, dlci); cmd.control = RFCOMM_CTRL(RFCOMM_UA, 1); cmd.length = RFCOMM_LEN8(0); @@ -2136,6 +2138,7 @@ static void rfcomm_dm_send(struct bthost *bthost, struct btconn *conn, { struct rfcomm_cmd cmd; + memset(&cmd, 0, sizeof(cmd)); cmd.address = RFCOMM_ADDR(cr, dlci); cmd.control = RFCOMM_CTRL(RFCOMM_DM, 1); cmd.length = RFCOMM_LEN8(0);
From: Tedd Ho-Jeong An <tedd.an@intel.com> This patch fixes the uninitiailzed varialble(CWE-457) reported by the Coverity scan. --- emulator/bthost.c | 3 +++ 1 file changed, 3 insertions(+)