[SLOF] [PATCH] virtio: Fix typo in virtio_serial_init()
Cédric Le Goater
clg at kaod.org
Thu Mar 5 01:42:01 AEDT 2020
Fixes: 300384f3dc68 ("virtio: Store queue descriptors in virtio_device")
Signed-off-by: Cédric Le Goater <clg at kaod.org>
---
lib/libvirtio/virtio-serial.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: SLOF.git/lib/libvirtio/virtio-serial.c
===================================================================
--- SLOF.git.orig/lib/libvirtio/virtio-serial.c
+++ SLOF.git/lib/libvirtio/virtio-serial.c
@@ -81,7 +81,7 @@ int virtio_serial_init(struct virtio_dev
last_rx_idx = virtio_modern16_to_cpu(dev, vq_rx->used->idx);
vq_tx = virtio_queue_init_vq(dev, TX_Q);
- if (vq_tx)
+ if (!vq_tx)
goto dev_error;
More information about the SLOF
mailing list