Commit 7576721
Bluetooth: L2CAP: Add missing checks for invalid DCID
When receiving a connect response we should make sure that the DCID is
within the valid range and that we don't already have another channel
allocated for the same DCID.
Missing checks may violate the specification (BLUETOOTH CORE SPECIFICATION
Version 5.4 | Vol 3, Part A, Page 1046).
Fixes: 4062418 ("Bluetooth: L2CAP: Add missing checks for invalid LE DCID")
Signed-off-by: Sungwoo Kim <iam@sung-woo.kim>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>1 parent 71e9588 commit 7576721
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4306 | 4306 | | |
4307 | 4307 | | |
4308 | 4308 | | |
| 4309 | + | |
| 4310 | + | |
| 4311 | + | |
| 4312 | + | |
4309 | 4313 | | |
4310 | 4314 | | |
4311 | 4315 | | |
| |||
4337 | 4341 | | |
4338 | 4342 | | |
4339 | 4343 | | |
| 4344 | + | |
| 4345 | + | |
| 4346 | + | |
| 4347 | + | |
| 4348 | + | |
4340 | 4349 | | |
4341 | 4350 | | |
4342 | 4351 | | |
| |||
0 commit comments