diff options
-rw-r--r-- | drivers/char/virtio_console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index ed99f3bf341a..10280a29a34b 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c | |||
@@ -1563,7 +1563,7 @@ static int init_vqs(struct ports_device *portdev) | |||
1563 | portdev->out_vqs = kmalloc(nr_ports * sizeof(struct virtqueue *), | 1563 | portdev->out_vqs = kmalloc(nr_ports * sizeof(struct virtqueue *), |
1564 | GFP_KERNEL); | 1564 | GFP_KERNEL); |
1565 | if (!vqs || !io_callbacks || !io_names || !portdev->in_vqs || | 1565 | if (!vqs || !io_callbacks || !io_names || !portdev->in_vqs || |
1566 | !portdev->out_vqs) { | 1566 | !portdev->out_vqs) { |
1567 | err = -ENOMEM; | 1567 | err = -ENOMEM; |
1568 | goto free; | 1568 | goto free; |
1569 | } | 1569 | } |