Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: facd15d ("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]>
- Loading branch information