Merge branch 'bugfix/fix_static_check_error_mr_4.3' into 'release/v4.3'

Fix the high-impact issues from the code analysis report from customer.

See merge request espressif/esp-idf!16045
This commit is contained in:
Jiang Jiang Jian
2021-11-23 06:36:23 +00:00
21 changed files with 139 additions and 182 deletions

View File

@@ -1976,6 +1976,9 @@ BOOLEAN L2CA_SetFixedChannelTout (BD_ADDR rem_bda, UINT16 fixed_cid, UINT16 idle
transport = BT_TRANSPORT_LE;
}
#endif
if (fixed_cid<L2CAP_FIRST_FIXED_CHNL) {
return (FALSE);
}
/* Is a fixed channel connected to the remote BDA ?*/
p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda, transport);