diff options
| author | Antoine Tenart <atenart@kernel.org> | 2020-12-23 22:23:23 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-12 20:10:20 +0100 |
| commit | e552fbd60944d6ae3c1942d9cf5eae88112d36eb (patch) | |
| tree | c417486b99742f3f392dec97c685d1c744242de6 /scripts/recordmcount.c | |
| parent | c2bda35d36bf91784e7cabd73a64d583bae47d15 (diff) | |
net-sysfs: take the rtnl lock when accessing xps_rxqs_map and num_tc
[ Upstream commit 4ae2bb81649dc03dfc95875f02126b14b773f7ab ]
Accesses to dev->xps_rxqs_map (when using dev->num_tc) should be
protected by the rtnl lock, like we do for netif_set_xps_queue. I didn't
see an actual bug being triggered, but let's be safe here and take the
rtnl lock while accessing the map in sysfs.
Fixes: 8af2c06ff4b1 ("net-sysfs: Add interface for Rx queue(s) map per Tx queue")
Signed-off-by: Antoine Tenart <atenart@kernel.org>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/recordmcount.c')
0 files changed, 0 insertions, 0 deletions
