diff options
author | Stefano Garzarella <sgarzare@redhat.com> | 2022-03-23 20:36:25 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-08 15:23:51 +0300 |
commit | 8b320893461cfdfbdb89f183737e1d7df67d7d7a (patch) | |
tree | 8802037de5e72707848edc6942098038969e3b4f /drivers/clk/clk.c | |
parent | b64bf5464ad56be06c4d6042be2284116db0ac48 (diff) | |
download | linux-8b320893461cfdfbdb89f183737e1d7df67d7d7a.tar.xz |
vsock/virtio: enable VQs early on probe
[ Upstream commit 88704454ef8b00ea91537ae0d47d9348077e0e72 ]
virtio spec requires drivers to set DRIVER_OK before using VQs.
This is set automatically after probe returns, but virtio-vsock
driver uses VQs in the probe function to fill rx and event VQs
with new buffers.
Let's fix this, calling virtio_device_ready() before using VQs
in the probe function.
Fixes: 0ea9e1d3a9e3 ("VSOCK: Introduce virtio_transport.ko")
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/clk/clk.c')
0 files changed, 0 insertions, 0 deletions