aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorJason Wang <[email protected]>2023-07-25 03:20:49 -0400
committerJakub Kicinski <[email protected]>2023-07-26 22:09:42 -0700
commit25266128fe16d5632d43ada34c847d7b8daba539 (patch)
tree8b76692de2e1046986ffbafb4a9052b9f3da0c66 /lib/test_fortify/write_overflow-strncpy-src.c
parent6c58c8816abb7b93b21fa3b1d0c1726402e5e568 (diff)
virtio-net: fix race between set queues and probe
A race were found where set_channels could be called after registering but before virtnet_set_queues() in virtnet_probe(). Fixing this by moving the virtnet_set_queues() before netdevice registering. While at it, use _virtnet_set_queues() to avoid holding rtnl as the device is not even registered at that time. Cc: [email protected] Fixes: a220871be66f ("virtio-net: correctly enable multiqueue") Signed-off-by: Jason Wang <[email protected]> Acked-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Xuan Zhuo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions