summaryrefslogtreecommitdiffstats
path: root/hw/mips_r4k.c
diff options
context:
space:
mode:
authorBlue Swirl2009-11-15 15:30:03 +0100
committerBlue Swirl2009-11-15 15:30:03 +0100
commitc364c974d9ab90e25e7887f516da65d2811ba5e3 (patch)
tree60f36af6af7556ee70b697fe6932105f158b7192 /hw/mips_r4k.c
parentDo not execute shell scripts directly (diff)
downloadqemu-c364c974d9ab90e25e7887f516da65d2811ba5e3.tar.gz
qemu-c364c974d9ab90e25e7887f516da65d2811ba5e3.tar.xz
qemu-c364c974d9ab90e25e7887f516da65d2811ba5e3.zip
PCI: make duplicate devfn allocation fatal
Only two callers of pci_create_simple/pci_register_device bothered to check the return value. Other cases were prone to crashing with spurious NULL pointer dereferences. Make QEMU exit with an error message when devfn is attempted to be duplicated, also applies to case when the bus is full. Remove checks. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/mips_r4k.c')
0 files changed, 0 insertions, 0 deletions