forked from canonical/lxd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lxd: Fix double unlock of the task group's mutex
Because we are storing the `task.Group` by value in `Daemon`, replacing it after the timeout re-initializes the Mutex, leaving it unlocked. If some task exceeds the timeout at just the right time, it will lock the old mutex and then unlock the new one, generating a panic. Fixes canonical#12540 Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
- Loading branch information
1 parent
79a254e
commit a224c94
Showing
1 changed file
with
7 additions
and
5 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