Commit 2a1bcc2
Bluetooth: Classic: L2CAP: Fix issue is received data len less than 2
If the received data length is less than 2 in none basic mode, the
L2CAP channel connection will be dropped.
Only check the received data length if the `SAR` is
`BT_L2CAP_CONTROL_SAR_START`.
Signed-off-by: Lyle Zhu <[email protected]>1 parent 63dbc4c commit 2a1bcc2
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5767 | 5767 | | |
5768 | 5768 | | |
5769 | 5769 | | |
5770 | | - | |
5771 | | - | |
5772 | 5770 | | |
5773 | 5771 | | |
5774 | | - | |
| 5772 | + | |
5775 | 5773 | | |
5776 | 5774 | | |
5777 | 5775 | | |
5778 | 5776 | | |
| 5777 | + | |
5779 | 5778 | | |
5780 | | - | |
5781 | 5779 | | |
5782 | 5780 | | |
5783 | 5781 | | |
| |||
0 commit comments