summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/syscalls/linux/vfs2/socket.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-09-01 20:44:01 +0000
committergVisor bot <gvisor-bot@google.com>2020-09-01 20:44:01 +0000
commit302245568e5f5286ac6cce38991ea3b9a17a64b7 (patch)
tree47cc454ab929f5635a23007294bef0c50b419d95 /pkg/sentry/syscalls/linux/vfs2/socket.go
parent326119398a23ecb6fef8b162fc358420239bf2c5 (diff)
parent04c284f8c2015b801c929325a6304e601eb94e56 (diff)
Merge release-20200818.0-101-g04c284f8c (automated)
Diffstat (limited to 'pkg/sentry/syscalls/linux/vfs2/socket.go')
-rw-r--r--pkg/sentry/syscalls/linux/vfs2/socket.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/syscalls/linux/vfs2/socket.go b/pkg/sentry/syscalls/linux/vfs2/socket.go
index a5032657a..a15dad29f 100644
--- a/pkg/sentry/syscalls/linux/vfs2/socket.go
+++ b/pkg/sentry/syscalls/linux/vfs2/socket.go
@@ -252,7 +252,7 @@ func SocketPair(t *kernel.Task, args arch.SyscallArguments) (uintptr, *kernel.Sy
if _, err := t.CopyOut(addr, fds); err != nil {
for _, fd := range fds {
- if _, file := t.FDTable().Remove(fd); file != nil {
+ if _, file := t.FDTable().Remove(t, fd); file != nil {
file.DecRef(t)
}
}