]> git.itanic.dy.fi Git - linux-stable/commit
netrom: Fix a data-race around sysctl_netrom_transport_busy_delay
authorJason Xing <kernelxing@tencent.com>
Mon, 4 Mar 2024 08:20:41 +0000 (16:20 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 7 Mar 2024 09:36:58 +0000 (10:36 +0100)
commit43547d8699439a67b78d6bb39015113f7aa360fd
tree48ee18922746a2b6da5620b596398fb46e60111d
parent806f462ba9029d41aadf8ec93f2f99c5305deada
netrom: Fix a data-race around sysctl_netrom_transport_busy_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