]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
batman-adv: replace non-atomic packet_size_max 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:02 +0000 (14:22 +0200)
commit58020571b54f41ddd786eb96cb0deb66668453db
tree112c97811db93a27b3b45babbec1dd678bbd4758
parent2b2450e3266ad01feb5ad0adb6ec3cd5b830c511
batman-adv: replace non-atomic packet_size_max with (READ|WRITE)_ONCE

The maximum packet size of an meshif is only accessed as plain loads/stores
and does not require full atomic_t semantics. Convert to a native integer
and replace its users with READ_ONCE()/WRITE_ONCE() to avoid load/store
tearing.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/hard-interface.c
net/batman-adv/mesh-interface.c
net/batman-adv/translation-table.c
net/batman-adv/types.h