diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2021-08-23 17:01:48 -0700 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2021-08-27 09:14:49 -0700 |
commit | 4dd0d5c33c3ebf24a07cae6141648aeb7ba56072 (patch) | |
tree | 765dcc953abccec6ddea70105dfa4840559791bc /drivers/net/bareudp.c | |
parent | 1f0cbb3e8916142382551c336065cbcbfb77a11e (diff) | |
download | linux-stable-4dd0d5c33c3ebf24a07cae6141648aeb7ba56072.tar.gz linux-stable-4dd0d5c33c3ebf24a07cae6141648aeb7ba56072.tar.bz2 linux-stable-4dd0d5c33c3ebf24a07cae6141648aeb7ba56072.zip |
ice: add lock around Tx timestamp tracker flush
The driver didn't take the lock while flushing the Tx tracker, which
could cause a race where one thread is trying to read timestamps out
while another thread is trying to read the tracker to check the
timestamps.
Avoid this by ensuring that flushing is locked against read accesses.
Fixes: ea9b847cda64 ("ice: enable transmit timestamps for E810 devices")
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/bareudp.c')
0 files changed, 0 insertions, 0 deletions