Skip to content
Commit 3c4bdfa5 authored by Théo Battrel's avatar Théo Battrel Committed by Marti Bolivar
Browse files

Bluetooth: Host: Check returned value by `LE_READ_BUFFER_SIZE`



`rp->le_max_num` was passed unchecked into `k_sem_init()`, this could
lead to the value being uninitialized and an unknown behavior.

To fix that issue, the `rp->le_max_num` value is checked the same way as
`bt_dev.le.acl_mtu` was already checked. The same things has been done
for `rp->acl_max_num` and `rp->iso_max_num` in
`read_buffer_size_v2_complete()` function.

Signed-off-by: default avatarThéo Battrel <theo.battrel@nordicsemi.no>
(cherry picked from commit ac3dec52)
parent 18869d0f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment