diff options
author | Ian Gudger <igudger@google.com> | 2018-08-28 17:25:13 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-08-28 17:26:26 -0700 |
commit | 52e6714146b46487a1260fab838a6ba193029845 (patch) | |
tree | 47546fd13dbe840b56d504eace78e5c4a851de45 /pkg/sentry/kernel | |
parent | 30c025f3efdf5b599d8fbd4172bb5b856cc269af (diff) |
fasync: don't keep mutex after return
PiperOrigin-RevId: 210637533
Change-Id: I3536c3f9efb54732a0d8ada8bc299142b2c1682f
Diffstat (limited to 'pkg/sentry/kernel')
-rw-r--r-- | pkg/sentry/kernel/fasync/fasync.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/fasync/fasync.go b/pkg/sentry/kernel/fasync/fasync.go index 15218fb5a..69c7970fa 100644 --- a/pkg/sentry/kernel/fasync/fasync.go +++ b/pkg/sentry/kernel/fasync/fasync.go @@ -47,6 +47,7 @@ type FileAsync struct { func (a *FileAsync) Callback(e *waiter.Entry) { a.mu.Lock() if a.e.Callback == nil { + a.mu.Unlock() return } t := a.recipientT |