Commit: 1f9ff8fb4048189c762ff83fa20b1cf3ab2973ad
Parent: ba5a1de8f8826ea55175c12a7b1122b145f350a1
Author: Xiao Yao <xiaoyao@rock-chips.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-01-12 17:34:39
Tree: 4d9bf09458135e86303065f3c875fbf41ce230eb

avdtp: Fix potential incorrect transaction label Currently, AVDTP commands and responses from remote devices are all stored in session.in. When one end has an ongoing transaction and immediately starting another transaction, it may cause the session. in.transaction to be incorrectly modified, so we need session.in_cmd and session.in_rsp to be able to handle outstanding requests in each direction. After applying this patch, the problem no longer recurs. Apply this patch to android/avdtp.c and run: > unit/test-avdtp Test Summary ------------ /TP/SIG/SMG/BV-06-C-SEID-1 Passed 0.004 seconds ... ... /TP/SIG/SYN/BV-06-C Passed 0.001 seconds Total: 62, Passed: 62 (100.0%), Failed: 0, Not Run: 0 Overall execution time: 1.76 seconds

Diffstat

M profiles/audio/avdtp.c | 103 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

1 files changed, 54 insertions(+), 49 deletions(-)

View Full Diff | Patch