]> git.ipfire.org Git - thirdparty/qemu.git/commit
pci-assign: Move "Invalid ROM" error message to pci-assign-load-rom.c
authorLin Ma <lma@suse.com>
Wed, 15 Jun 2016 17:05:27 +0000 (01:05 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 5 Aug 2016 19:29:49 +0000 (14:29 -0500)
commit4f696c85331ce19d3d2af29519e21a45192d3200
tree836eff1ff3f3f14af4b8df38f7c34b1b625214d0
parenta50bb5fd5f5ff6f6bbb8bfbd7086e1bafcc20c04
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>
(cherry picked from commit be968c721ee9df49708691ab58f0e66b394dea82)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/i386/kvm/pci-assign.c
hw/i386/pci-assign-load-rom.c