Skip to content
Commit 4f696c85 authored by Lin Ma's avatar Lin Ma Committed by Michael Roth
Browse files

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: default avatarLin Ma <lma@suse.com>
Message-Id: <1466010327-22368-1-git-send-email-lma@suse.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit be968c72)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent a50bb5fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment