summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-03-18 22:17:54 +0000
committergVisor bot <gvisor-bot@google.com>2020-03-18 22:17:54 +0000
commit949b845b8901bd053203e2b05b595f19c31a903f (patch)
tree1abeb58400ddcad8b61f90410084f0d71f56993b /pkg/sentry
parent776df4db11fcfbea0f4b4832ab44656b08af616d (diff)
parentf1d1af2a4ad35dd20a7c56bd9e842e347b126c31 (diff)
Merge release-20200219.0-193-gf1d1af2 (automated)
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/kernel/fd_table.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/kernel/fd_table.go b/pkg/sentry/kernel/fd_table.go
index dddc28d5a..d09d97825 100644
--- a/pkg/sentry/kernel/fd_table.go
+++ b/pkg/sentry/kernel/fd_table.go
@@ -338,7 +338,7 @@ func (f *FDTable) NewFDVFS2(ctx context.Context, minfd int32, file *vfs.FileDesc
fd = f.next
}
for fd < end {
- if d, _, _ := f.get(fd); d == nil {
+ if d, _, _ := f.getVFS2(fd); d == nil {
f.setVFS2(fd, file, flags)
if fd == f.next {
// Update next search start position.