]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
pci-assign: assignment should fail if we can't read config space
authorLaszlo Ersek <lersek@redhat.com>
Thu, 10 Apr 2014 08:24:38 +0000 (10:24 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 8 May 2014 18:19:59 +0000 (14:19 -0400)
assigned_initfn()
  get_real_device()
    read()

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
hw/i386/kvm/pci-assign.c

index f91d4fb8dc9b5abe58d05a31807f637f4579dc4a..e89bb6a4c1cdf615c1ae2650ca919fe5083d587f 100644 (file)
@@ -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 */