netrom: Fix a data-race around sysctl_netrom_transport_acknowledge_delay
authorJason Xing <kernelxing@tencent.com>
Mon, 4 Mar 2024 08:20:40 +0000 (16:20 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 7 Mar 2024 09:36:58 +0000 (10:36 +0100)
commit806f462ba9029d41aadf8ec93f2f99c5305deada
treec95551416c896d6e0e5eedc5d59a0a2b2c5c12c9
parente799299aafed417cc1f32adccb2a0e5268b3f6d5
netrom: Fix a data-race around sysctl_netrom_transport_acknowledge_delay

We need to protect the reader reading the sysctl value because the
value can be changed concurrently.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Jason Xing <kernelxing@tencent.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/netrom/af_netrom.c