diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-10-20 23:12:15 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-20 23:12:15 +0000 |
commit | 0cf756f5cc9339d3c4b61df84563042437adabdb (patch) | |
tree | 93d62e711976e660ece61474e5d138cd0e0abac5 /pkg | |
parent | bde845de1628ae718e6b1c5e1ffd29667fe71356 (diff) | |
parent | 2bfdbfd1fdbe09615b51d3cf360e751bd2c6a981 (diff) |
Merge release-20201005.0-113-g2bfdbfd1f (automated)
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/tcpip/stack/addressable_endpoint_state.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/tcpip/stack/addressable_endpoint_state.go b/pkg/tcpip/stack/addressable_endpoint_state.go index 4d3acab96..261705575 100644 --- a/pkg/tcpip/stack/addressable_endpoint_state.go +++ b/pkg/tcpip/stack/addressable_endpoint_state.go @@ -361,6 +361,8 @@ func (a *AddressableEndpointState) RemovePermanentEndpoint(ep AddressEndpoint) * return tcpip.ErrInvalidEndpointState } + a.mu.Lock() + defer a.mu.Unlock() return a.removePermanentEndpointLocked(addrState) } |