summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2023-12-06 17:21:23 +0100
committerJakub Kicinski <kuba@kernel.org>2023-12-08 16:10:17 -0800
commitbf17b36ccdd5b7b9dd482d7753bcb9aff2d21d39 (patch)
treefad92655d8cc8204cd157a74d71bb68bcca71b5a /include/net
parent172db56d90d29e47e7d0d64885d5dbd92c87ec42 (diff)
downloadlinux-stable-bf17b36ccdd5b7b9dd482d7753bcb9aff2d21d39.tar.gz
linux-stable-bf17b36ccdd5b7b9dd482d7753bcb9aff2d21d39.tar.bz2
linux-stable-bf17b36ccdd5b7b9dd482d7753bcb9aff2d21d39.zip
net: sysfs: fix locking in carrier read
My previous patch added a call to linkwatch_sync_dev(), but that of course needs to be called under RTNL, which I missed earlier, but now saw RCU warnings from. Fix that by acquiring the RTNL in a similar fashion to how other files do it here. Fixes: facd15dfd691 ("net: core: synchronize link-watch when carrier is queried") Signed-off-by: Johannes Berg <johannes.berg@intel.com> Link: https://lore.kernel.org/r/20231206172122.859df6ba937f.I9c80608bcfbab171943ff4942b52dbd5e97fe06e@changeid Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions