diff options
author | Laszlo Ersek <lersek@redhat.com> | 2014-04-10 10:24:38 +0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-05-08 14:19:59 -0400 |
commit | f3455d47046f604f1ca7353dd519ea2d2e5fa798 (patch) | |
tree | b20a2e8db63b202011287e82408cf80e0ab67de2 /hw/i386/kvm/pci-assign.c | |
parent | 42ee4194f2ac7ff16f8e5cb7900c7d35d483f974 (diff) | |
download | qemu-f3455d47046f604f1ca7353dd519ea2d2e5fa798.zip |
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>
Diffstat (limited to 'hw/i386/kvm/pci-assign.c')
-rw-r--r-- | hw/i386/kvm/pci-assign.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i386/kvm/pci-assign.c b/hw/i386/kvm/pci-assign.c index f91d4fb8dc..e89bb6a4c1 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 */ |