Revision b57ed9bf hw/s390x/s390-virtio-ccw.c

b/hw/s390x/s390-virtio-ccw.c
31 31
    if (!sch || !css_subch_visible(sch)) {
32 32
        return -EINVAL;
33 33
    }
34
    if (queue >= VIRTIO_PCI_QUEUE_MAX) {
35
        return -EINVAL;
36
    }
34 37
    virtio_queue_notify(virtio_ccw_get_vdev(sch), queue);
35 38
    return 0;
36 39

  

Also available in: Unified diff