Files
linux/drivers/net/netdevsim
Jakub Kicinski 26c37d89f6 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 <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-11-01 13:29:41 +00:00
..
2021-10-29 21:15:08 -07:00
2021-09-17 14:19:39 +01:00
2021-07-16 11:17:56 -07:00
2021-10-29 21:15:08 -07:00