diff options
| author | Amir Abudubai <amirabudubai@gmail.com> | 2026-11-11 15:49:05 -0600 |
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2026-11-12 14:35:14 -0500 |
| commit | 3b069de8a5d688c7e8381b99d6cdb7467fcae0de (patch) | |
| tree | 86af0a1e01e7a01423e72704f44926bae3d6b7f5 /tools/perf/scripts/python/stackcollapse.py | |
| parent | f3183d7ad10120437bcc3f4a751cd256ba69793f (diff) | |
Bluetooth: L2CAP: Fix size check for receive buffer space
Check that available receive space covers a full MTU-sized SDU and its
overhead, rather than just the overhead. Otherwise, credits can be
exhausted before an SDU is completed. This could result in a deadlock under
some configurations and SDU combinations.
This follows the SDU-sized credit policy from commit 96cd8eaa131f
("Bluetooth: L2CAP: Derive rx credits from MTU and MPS"). Clarify the
comment by replacing "packet" with "SDU".
Fixes: ce60b9231b66 ("Bluetooth: compute LE flow credits based on recvbuf space")
Signed-off-by: Amir Abudubai <amirabudubai@gmail.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
