diff options
author | Johannes Berg <[email protected]> | 2023-12-06 17:21:23 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-12-08 16:10:17 -0800 |
commit | bf17b36ccdd5b7b9dd482d7753bcb9aff2d21d39 (patch) | |
tree | fad92655d8cc8204cd157a74d71bb68bcca71b5a /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 172db56d90d29e47e7d0d64885d5dbd92c87ec42 (diff) |
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 <[email protected]>
Link: https://lore.kernel.org/r/20231206172122.859df6ba937f.I9c80608bcfbab171943ff4942b52dbd5e97fe06e@changeid
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions