pci-assign: assignment should fail if we can't read config space

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>
This commit is contained in:
Laszlo Ersek authored and Luiz Capitulino committed 2014-05-08 14:19:59 -04:00
1 parent 42ee4194f2
commit f3455d4704
1 file changed
+1
+1
View 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 */