qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 14/38] pci-assign: assignment should fail if we can't


From: Luiz Capitulino
Subject: [Qemu-devel] [PULL 14/38] pci-assign: assignment should fail if we can't read config space
Date: Thu, 8 May 2014 14:52:38 -0400

From: Laszlo Ersek <address@hidden>

assigned_initfn()
  get_real_device()
    read()

Signed-off-by: Laszlo Ersek <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Signed-off-by: Luiz Capitulino <address@hidden>
---
 hw/i386/kvm/pci-assign.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/i386/kvm/pci-assign.c b/hw/i386/kvm/pci-assign.c
index f91d4fb..e89bb6a 100644
--- a/hw/i386/kvm/pci-assign.c
+++ b/hw/i386/kvm/pci-assign.c
@@ -576,6 +576,7 @@ again:
             goto again;
         }
         error_report("%s: read failed, errno = %d", __func__, errno);
+        return 1;
     }
 
     /* Restore or clear multifunction, this is always controlled by qemu */
-- 
1.9.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]