diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2022-07-12 03:15:33 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-13 14:56:50 +0300 |
commit | bdf00bf24bef9be1ca641a6390fd5487873e0d2e (patch) | |
tree | a571db15de0e5ac08997aab9705356eff39685b6 /drivers/net/ethernet/faraday | |
parent | e49e4aff7ec19b2d0d0957ee30e93dade57dab9e (diff) | |
download | linux-bdf00bf24bef9be1ca641a6390fd5487873e0d2e.tar.xz |
nexthop: Fix data-races around nexthop_compat_mode.
While reading nexthop_compat_mode, it can be changed concurrently.
Thus, we need to add READ_ONCE() to its readers.
Fixes: 4f80116d3df3 ("net: ipv4: add sysctl for nexthop api compatibility mode")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/faraday')
0 files changed, 0 insertions, 0 deletions