Files
linux/drivers/net
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-22 10:16:09 -07:00
2021-10-22 10:16:14 -07:00
2021-07-27 20:11:44 +01:00
2021-10-09 11:55:01 +01:00
2021-10-22 10:16:18 -07:00
2021-07-27 20:11:43 +01:00
2021-08-04 10:10:12 +01:00
2021-10-09 11:55:01 +01:00
2021-10-09 11:55:01 +01:00
2021-08-03 13:05:26 +01:00
2021-07-29 12:18:12 +01:00