diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-07-15 18:41:17 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-15 18:41:17 +0000 |
commit | 607170858082259134ebd03005e9994ae7b5c088 (patch) | |
tree | 9e44a0e83c1c47a73f41353a648da2b6bd810894 /pkg/sentry/socket | |
parent | fed529cdb70336843f6a15d158fb70f27f6368fd (diff) | |
parent | fc48ace73aea9294c9f4ee881950d836715bf4d7 (diff) |
Merge release-20200622.1-158-gfc48ace73 (automated)
Diffstat (limited to 'pkg/sentry/socket')
-rw-r--r-- | pkg/sentry/socket/hostinet/socket_vfs2.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/sentry/socket/hostinet/socket_vfs2.go b/pkg/sentry/socket/hostinet/socket_vfs2.go index 8f192c62f..8a1d52ebf 100644 --- a/pkg/sentry/socket/hostinet/socket_vfs2.go +++ b/pkg/sentry/socket/hostinet/socket_vfs2.go @@ -71,6 +71,7 @@ func newVFS2Socket(t *kernel.Task, family int, stype linux.SockType, protocol in DenyPWrite: true, UseDentryMetadata: true, }); err != nil { + fdnotifier.RemoveFD(int32(s.fd)) return nil, syserr.FromError(err) } return vfsfd, nil |