mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix data race in SetSockOpt.
PiperOrigin-RevId: 302539171
This commit is contained in:
committed by
gVisor bot
parent
6eebaea949
commit
369cf38bd7
@@ -2382,9 +2382,9 @@ func (s *SocketOperations) nonBlockingRead(ctx context.Context, dst usermem.IOSe
|
||||
// caller-supplied buffer.
|
||||
s.readMu.Lock()
|
||||
n, err := s.coalescingRead(ctx, dst, trunc)
|
||||
s.readMu.Unlock()
|
||||
cmsg := s.controlMessages()
|
||||
s.fillCmsgInq(&cmsg)
|
||||
s.readMu.Unlock()
|
||||
return n, 0, nil, 0, cmsg, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user