diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-03-05 23:11:50 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-03-05 23:11:50 +0000 |
commit | 2d2c558d9661613dad61233466c5313fb48437bd (patch) | |
tree | 81878db009e7849cf5dc5ff2a8b7c2519e459239 /pkg/tcpip | |
parent | c72f163bcae7335ae11824cd91e382ebf0cc9e82 (diff) | |
parent | 2db8f748593c09a283f5ce229bb6bfedc92849d1 (diff) |
Merge release-20210301.0-19-g2db8f7485 (automated)
Diffstat (limited to 'pkg/tcpip')
-rw-r--r-- | pkg/tcpip/network/ipv4/ipv4.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/tcpip/network/ipv4/ipv4.go b/pkg/tcpip/network/ipv4/ipv4.go index cabe274d6..8a2140ebe 100644 --- a/pkg/tcpip/network/ipv4/ipv4.go +++ b/pkg/tcpip/network/ipv4/ipv4.go @@ -899,10 +899,9 @@ func (e *endpoint) handlePacket(pkt *stack.PacketBuffer) { // Close cleans up resources associated with the endpoint. func (e *endpoint) Close() { e.mu.Lock() - defer e.mu.Unlock() - e.disableLocked() e.mu.addressableEndpointState.Cleanup() + e.mu.Unlock() e.protocol.forgetEndpoint(e.nic.ID()) } |