diff options
author | Alexander Duyck <alexanderduyck@fb.com> | 2021-02-08 23:29:18 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-02-09 00:07:50 +0100 |
commit | b2f175648031b8b22927220abd3b081f1a12e628 (patch) | |
tree | 480dae4449566e4c465065a9cd26bcde1c7dcdf8 /net/rxrpc | |
parent | nfc: st-nci: Remove unnecessary variable (diff) | |
download | linux-b2f175648031b8b22927220abd3b081f1a12e628.tar.xz linux-b2f175648031b8b22927220abd3b081f1a12e628.zip |
net-sysfs: Add rtnl locking for getting Tx queue traffic class
In order to access the suboordinate dev for a device we should be holding
the rtnl_lock when outside of the transmit path. The existing code was not
doing that for the sysfs dump function and as a result we were open to a
possible race.
To resolve that take the rtnl lock prior to accessing the sb_dev field of
the Tx queue and release it after we have retrieved the tc for the queue.
Signed-off-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc')
0 files changed, 0 insertions, 0 deletions