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 2014-04-10 10:24:38 +02:00 committed by Luiz Capitulino
parent 42ee4194f2
commit f3455d4704
1 changed files with 1 additions and 0 deletions

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 */