Message ID | 20240304082046.64977-3-kerneljasonxing@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | cfd9f4a740f772298308b2e6070d2c744fb5cf79 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | netrom: Fix all the data-races around sysctls | expand |
diff --git a/net/netrom/nr_route.c b/net/netrom/nr_route.c index 6f709fdffc11..b8ddd8048f35 100644 --- a/net/netrom/nr_route.c +++ b/net/netrom/nr_route.c @@ -766,7 +766,7 @@ int nr_route_frame(struct sk_buff *skb, ax25_cb *ax25) if (ax25 != NULL) { ret = nr_add_node(nr_src, "", &ax25->dest_addr, ax25->digipeat, ax25->ax25_dev->dev, 0, - sysctl_netrom_obsolescence_count_initialiser); + READ_ONCE(sysctl_netrom_obsolescence_count_initialiser)); if (ret) return ret; }