diff options
-rw-r--r-- | lib/libvirtio/virtio-serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libvirtio/virtio-serial.c b/lib/libvirtio/virtio-serial.c index 8826be9..d1503a4 100644 --- a/lib/libvirtio/virtio-serial.c +++ b/lib/libvirtio/virtio-serial.c @@ -81,7 +81,7 @@ int virtio_serial_init(struct virtio_device *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; |