Message ID | 4B04F9E1.50709@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/viostor/virtio_stor_hw_helper.c b/viostor/virtio_stor_hw_helper.c index 2e61b30..fac9792 100644 --- a/viostor/virtio_stor_hw_helper.c +++ b/viostor/virtio_stor_hw_helper.c @@ -27,7 +27,7 @@ SynchronizedAccessRoutine( if (adaptExt->pci_vq_info.vq->vq_ops->add_buf(adaptExt->pci_vq_info.vq, &srbExt->vbr.sg[0], srbExt->out, srbExt->in, -&srbExt->vbr) == 0){ +&srbExt->vbr)>= 0){ InsertTailList(&adaptExt->list_head,&srbExt->vbr.list_entry); adaptExt->pci_vq_info.vq->vq_ops->kick(adaptExt->pci_vq_info.vq); return TRUE;