diff options
author | Amanda Tait <atait@google.com> | 2019-02-25 10:01:25 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-02-25 10:02:29 -0800 |
commit | c14a1a161869804af5ae2f1f73fd8eeb135ff043 (patch) | |
tree | 1a579653fea54fce3943c5dc4567563a646c05ef /pkg/tcpip/header/eth.go | |
parent | 317c0324c9c73e1c6d6c9cfa7e9cdbfbf1f63b06 (diff) |
Fix race condition in NIC.DeliverNetworkPacket
cl/234850781 introduced a race condition in NIC.DeliverNetworkPacket
by failing to hold a lock. This change fixes this regressesion by acquiring
a read lock before iterating through n.endpoints, and then releasing the lock
once iteration is complete.
PiperOrigin-RevId: 235549770
Change-Id: Ib0133288be512d478cf759c3314dc95ec3205d4b
Diffstat (limited to 'pkg/tcpip/header/eth.go')
0 files changed, 0 insertions, 0 deletions