]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netrom: Fix a data-race around sysctl_netrom_transport_requested_window_size
authorJason Xing <kernelxing@tencent.com>
Mon, 4 Mar 2024 08:20:42 +0000 (16:20 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 7 Mar 2024 09:36:58 +0000 (10:36 +0100)
commita2e706841488f474c06e9b33f71afc947fb3bf56
tree9db1163c7276bbfef6c223132da30a1127c95c08
parent43547d8699439a67b78d6bb39015113f7aa360fd
netrom: Fix a data-race around sysctl_netrom_transport_requested_window_size

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