diff options
author | Eric Dumazet <edumazet@google.com> | 2023-03-16 04:10:09 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-03-17 11:52:05 +0300 |
commit | 1051ce4ab64db91f7b62369ddc321ba8747f8c84 (patch) | |
tree | f2a6bf0ebfc9e1c06f12fe4879deb5547baf7128 /net/packet/diag.c | |
parent | fd53c297aa7b077ae98a3d3d2d3aa278a1686ba6 (diff) | |
download | linux-1051ce4ab64db91f7b62369ddc321ba8747f8c84.tar.xz |
net/packet: annotate accesses to po->tp_tstamp
tp_tstamp is read locklessly.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet/diag.c')
-rw-r--r-- | net/packet/diag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/packet/diag.c b/net/packet/diag.c index d704c7bf51b2..0abca32e2f87 100644 --- a/net/packet/diag.c +++ b/net/packet/diag.c @@ -18,7 +18,7 @@ static int pdiag_put_info(const struct packet_sock *po, struct sk_buff *nlskb) pinfo.pdi_version = po->tp_version; pinfo.pdi_reserve = po->tp_reserve; pinfo.pdi_copy_thresh = po->copy_thresh; - pinfo.pdi_tstamp = po->tp_tstamp; + pinfo.pdi_tstamp = READ_ONCE(po->tp_tstamp); pinfo.pdi_flags = 0; if (po->running) |