Commit ac3dec5
Bluetooth: Host: Check returned value by
`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: Théo Battrel <[email protected]>LE_READ_BUFFER_SIZE
1 parent 5b9a2ef commit ac3dec5
1 file changed
+20
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2602 | 2602 | | |
2603 | 2603 | | |
2604 | 2604 | | |
2605 | | - | |
2606 | | - | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
2607 | 2608 | | |
2608 | 2609 | | |
2609 | 2610 | | |
| 2611 | + | |
| 2612 | + | |
2610 | 2613 | | |
2611 | 2614 | | |
2612 | 2615 | | |
| |||
2621 | 2624 | | |
2622 | 2625 | | |
2623 | 2626 | | |
2624 | | - | |
2625 | | - | |
2626 | | - | |
2627 | | - | |
| 2627 | + | |
2628 | 2628 | | |
2629 | | - | |
| 2629 | + | |
| 2630 | + | |
| 2631 | + | |
2630 | 2632 | | |
2631 | | - | |
| 2633 | + | |
| 2634 | + | |
2632 | 2635 | | |
2633 | 2636 | | |
2634 | | - | |
2635 | | - | |
| 2637 | + | |
| 2638 | + | |
| 2639 | + | |
2636 | 2640 | | |
2637 | 2641 | | |
2638 | 2642 | | |
2639 | 2643 | | |
| 2644 | + | |
| 2645 | + | |
2640 | 2646 | | |
2641 | 2647 | | |
2642 | 2648 | | |
| |||
2910 | 2916 | | |
2911 | 2917 | | |
2912 | 2918 | | |
| 2919 | + | |
2913 | 2920 | | |
2914 | 2921 | | |
2915 | 2922 | | |
| |||
2923 | 2930 | | |
2924 | 2931 | | |
2925 | 2932 | | |
| 2933 | + | |
2926 | 2934 | | |
2927 | 2935 | | |
2928 | 2936 | | |
| |||
2966 | 2974 | | |
2967 | 2975 | | |
2968 | 2976 | | |
| 2977 | + | |
2969 | 2978 | | |
| 2979 | + | |
2970 | 2980 | | |
2971 | 2981 | | |
2972 | 2982 | | |
| |||
0 commit comments