aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netdevsim/netdev.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2021-10-30 23:15:01 +0000
committerDavid S. Miller <[email protected]>2021-11-01 13:29:41 +0000
commit26c37d89f61d84dda55feefeafb4907f2a7cd944 (patch)
treef74f0aacd8288855cdcbc2a3fba5739f0892d682 /drivers/net/netdevsim/netdev.c
parentMerge branch 'devlink-locking' (diff)
downloadkernel-26c37d89f61d84dda55feefeafb4907f2a7cd944.tar.gz
kernel-26c37d89f61d84dda55feefeafb4907f2a7cd944.zip
netdevsim: take rtnl_lock when assigning num_vfs
Legacy VF NDOs look at num_vfs and then based on that index into vfconfig. If we don't rtnl_lock() num_vfs may get set to 0 and vfconfig freed/replaced while the NDO is running. We don't need to protect replacing vfconfig since it's only done when num_vfs is 0. Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/netdevsim/netdev.c')
0 files changed, 0 insertions, 0 deletions