-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pw_rpc: Move on_completed_ before invoking it
Move the on_completed_ callback to a local variable while holding the RPC lock to fix a race condition. Bug: b/234876851 Change-Id: Ib64cd6b7542198dd0c0a5c08f162f60bf0756001 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/125212 Commit-Queue: Auto-Submit <[email protected]> Pigweed-Auto-Submit: Wyatt Hepler <[email protected]> Reviewed-by: Alexei Frolov <[email protected]>
- Loading branch information
Showing
2 changed files
with
28 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters