]> git.ipfire.org Git - thirdparty/linux.git/commit
batman-adv: replace non-atomic hardif config fields with (READ|WRITE)_ONCE
authorSven Eckelmann <sven@narfation.org>
Tue, 12 May 2026 17:37:05 +0000 (19:37 +0200)
committerSven Eckelmann <sven@narfation.org>
Mon, 1 Jun 2026 12:22:01 +0000 (14:22 +0200)
commitdbb48d9089bd607cbe7d73e795ede0090032eafc
tree8c6006ee1666f27309385e2e869b81969c37f6f3
parent6a4f30e6e34cd15f44ffdb0a4991ff3a5a5b8f82
batman-adv: replace non-atomic hardif config fields with (READ|WRITE)_ONCE

The hardif configuration values are only accessed as plain loads/stores and
do not require full atomic_t semantics. Convert these fields to native
integer types and replace their users with READ_ONCE()/WRITE_ONCE() to
avoid load/store tearing.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/bat_v.c
net/batman-adv/bat_v_elp.c
net/batman-adv/bat_v_ogm.c
net/batman-adv/hard-interface.c
net/batman-adv/netlink.c
net/batman-adv/types.h