summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-06-21 19:04:36 +0000
committergVisor bot <gvisor-bot@google.com>2019-06-21 19:04:36 +0000
commitb42e4cc6700029d0fa8eea57c57c0acbee181596 (patch)
tree8f3d665b8430f07d2cb2db3a1393ec8c6ffcb28c
parent9836bf11b6aec373bd73142e6dc3965b46d0e363 (diff)
parentf94653b3dea629f365ce5742b99bbcaa7673ded2 (diff)
Merge f94653b3 (automated)
-rw-r--r--pkg/sentry/kernel/task.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/kernel/task.go b/pkg/sentry/kernel/task.go
index 7ed589a02..c297c5973 100644
--- a/pkg/sentry/kernel/task.go
+++ b/pkg/sentry/kernel/task.go
@@ -703,8 +703,8 @@ func (t *Task) FDMap() *FDMap {
// WithMuLocked executes f with t.mu locked.
func (t *Task) WithMuLocked(f func(*Task)) {
t.mu.Lock()
- defer t.mu.Unlock()
f(t)
+ t.mu.Unlock()
}
// MountNamespace returns t's MountNamespace. MountNamespace does not take an