From 52e6714146b46487a1260fab838a6ba193029845 Mon Sep 17 00:00:00 2001 From: Ian Gudger Date: Tue, 28 Aug 2018 17:25:13 -0700 Subject: fasync: don't keep mutex after return PiperOrigin-RevId: 210637533 Change-Id: I3536c3f9efb54732a0d8ada8bc299142b2c1682f --- pkg/sentry/kernel/fasync/fasync.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/sentry/kernel') 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 -- cgit v1.2.3