aboutsummaryrefslogtreecommitdiff
path: root/drivers/hsi
diff options
context:
space:
mode:
authorJason Wang2023-07-25 03:20:49 -0400
committerGreg Kroah-Hartman2023-08-03 10:24:14 +0200
commite1fda7c1250f3142ece24fca8aab6a48a456d83c (patch)
treeb9a796b4f55d6c4140c0ce4b63aeb00604d53234 /drivers/hsi
parentcd1a8952ff529adc210e62306849fd6f256608c0 (diff)
virtio-net: fix race between set queues and probe
commit 25266128fe16d5632d43ada34c847d7b8daba539 upstream. 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: stable@vger.kernel.org Fixes: a220871be66f ("virtio-net: correctly enable multiqueue") Signed-off-by: Jason Wang <jasowang@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com> Link: https://lore.kernel.org/r/20230725072049.617289-1-jasowang@redhat.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hsi')
0 files changed, 0 insertions, 0 deletions