Files
linux/drivers
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-09-08 11:50:26 -07:00
2021-10-28 12:46:31 +01:00
2021-10-28 12:47:49 +01:00
2021-10-29 13:17:21 +01:00
2021-09-20 12:43:34 +01:00
2021-10-28 14:42:20 +01:00
2021-08-14 15:54:09 -06:00