pci-assign: Move "Invalid ROM" error message to pci-assign-load-rom.c
commitbe968c721ee9df49708691ab58f0e66b394dea82
authorLin Ma <lma@suse.com>
Wed, 15 Jun 2016 17:05:27 +0000 (16 01:05 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 Jun 2016 12:03:47 +0000 (29 14:03 +0200)
tree6c538a2547fb39dc85eea1a226741fc585cd2c6f
parent33df7bf3bf43ffa3001cadfe5d5faef2774522d0
pci-assign: Move "Invalid ROM" error message to pci-assign-load-rom.c

In function pci_assign_dev_load_option_rom, For those pci devices don't
have 'rom' file under sysfs or if loading ROM from external file, The
function returns NULL, and won't set the passed 'size' variable.

In these 2 cases, qemu still reports "Invalid ROM" error message, Users
may be confused by it.

Signed-off-by: Lin Ma <lma@suse.com>
Message-Id: <1466010327-22368-1-git-send-email-lma@suse.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/kvm/pci-assign.c
hw/i386/pci-assign-load-rom.c