| Submitter | Kevin Wolf |
|---|---|
| Date | July 13, 2010, 3:54 p.m. |
| Message ID | <1279036466-19934-4-git-send-email-kwolf@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/58796/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index c728fff..5583166 100644 --- a/hw/virtio-pci.c +++ b/hw/virtio-pci.c @@ -551,6 +551,9 @@ static int virtio_blk_init_pci(PCIDevice *pci_dev) return -1; } vdev = virtio_blk_init(&pci_dev->qdev, &proxy->block); + if (!vdev) { + return -1; + } vdev->nvectors = proxy->nvectors; virtio_init_pci(proxy, vdev, PCI_VENDOR_ID_REDHAT_QUMRANET,