]> git.proxmox.com Git - qemu.git/commit
Pci nic: pci_register_device can fail
authorChris Wright <chrisw@sous-sol.org>
Mon, 21 Apr 2008 23:02:48 +0000 (16:02 -0700)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 1 May 2009 15:13:24 +0000 (10:13 -0500)
commit260437cba33a283f92d8eecd739453eecc15d204
treea14e3c1f02e85fb295e6ca9a1d33c05e555ca2ed
parent233e01e475f3bead95180d715e9b25bd4e76017a
Pci nic: pci_register_device can fail

The pci_register_device() call in PCI nic initialization routines can
fail.  Handle this failure and propagate a meaningful error message to
the user instead of generating a SEGV.

Cc: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/e1000.c
hw/eepro100.c
hw/ne2000.c
hw/pcnet.c
hw/rtl8139.c