diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-04-29 00:46:06 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-04-29 00:46:06 +0000 |
commit | 76154d31d02bfb81b16d9f1edf6b5333873fa5aa (patch) | |
tree | 7435dadb63ce634cf1af10af1c70720d67255d0c | |
parent | 0293ccf4aa6bd56b22f8d437997fdd267e4d56c5 (diff) | |
parent | f93f2fda74f31246e8866783f6c4be2318bdedd6 (diff) |
Merge release-20200413.0-16-gf93f2fd (automated)
-rw-r--r-- | pkg/sentry/socket/unix/unix.go | 2 | ||||
-rwxr-xr-x | pkg/sentry/socket/unix/unix_vfs2.go | 7 |
2 files changed, 1 insertions, 8 deletions
diff --git a/pkg/sentry/socket/unix/unix.go b/pkg/sentry/socket/unix/unix.go index 9aad41c9e..ddd0eda4b 100644 --- a/pkg/sentry/socket/unix/unix.go +++ b/pkg/sentry/socket/unix/unix.go @@ -103,7 +103,7 @@ func (s *socketOpsCommon) DecRef() { } // Release implemements fs.FileOperations.Release. -func (s *SocketOperations) Release() { +func (s *socketOpsCommon) Release() { // Release only decrements a reference on s because s may be referenced in // the abstract socket namespace. s.DecRef() diff --git a/pkg/sentry/socket/unix/unix_vfs2.go b/pkg/sentry/socket/unix/unix_vfs2.go index 315dc274f..433cde9cb 100755 --- a/pkg/sentry/socket/unix/unix_vfs2.go +++ b/pkg/sentry/socket/unix/unix_vfs2.go @@ -273,13 +273,6 @@ func (s *SocketVFS2) Write(ctx context.Context, src usermem.IOSequence, opts vfs }) } -// Release implements vfs.FileDescriptionImpl. -func (s *SocketVFS2) Release() { - // Release only decrements a reference on s because s may be referenced in - // the abstract socket namespace. - s.DecRef() -} - // Readiness implements waiter.Waitable.Readiness. func (s *SocketVFS2) Readiness(mask waiter.EventMask) waiter.EventMask { return s.socketOpsCommon.Readiness(mask) |