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

Skip to content
Commit f9ce5d9c authored by Jeremy Wu's avatar Jeremy Wu
Browse files

Floss: disallow replacing callbacks in reactables

We found that some callbacks bound to member functions of |HciHalHost|
can get freed while to be run, due to |Reactor::ModifyRegistration|
allowing to replace the callback from aside without measures to prevent
the race.

Currently, |HciHalHost| is the only caller to that function, and an
approach is to disallow replacing the callbacks, and only update the
poll event masks of interest.

Bug: 256533348
Tag: #floss
Test: reactor unit tests
Change-Id: I7d1eb16a010dd6479514832e6e6333260b769bf8
parent eecb0339
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