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:
parent
42ee4194f2
commit
f3455d4704
|
@ -576,6 +576,7 @@ again:
|
||||||
goto again;
|
goto again;
|
||||||
}
|
}
|
||||||
error_report("%s: read failed, errno = %d", __func__, errno);
|
error_report("%s: read failed, errno = %d", __func__, errno);
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Restore or clear multifunction, this is always controlled by qemu */
|
/* Restore or clear multifunction, this is always controlled by qemu */
|
||||||
|
|
Loading…
Reference in a new issue