Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit fd0af8fd authored by Zach Johnson's avatar Zach Johnson
Browse files

Prevent race condition in setting up L2CAP

Since outgoing and incoming were accessing the same underlying data
structure, if both were in progress one could overwrite the data
present and the first to succeed would cause the following one to crash.

Instead pass the data directly in the closure, to remove unnecessary
fields and ensure the data is present.

Test: cert/run --host
Tag: #gd-refactor
Bug: 159815595
Change-Id: Ibd7f98ea29d06c0a1b8864fe08adf95572c06ca4
parent 7fc3ba30
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment