qemu/hw
Stefan Hajnoczi baefb8bf8e ivshmem: add missing error exit(2)
If the user fails to specify 'chardev' or 'shm' then we cannot continue.
Exit right away so that we don't invoke shm_open(3) with a NULL pointer.

It would be nice to replace exit(1) with error returns in the PCI device
.init() function, but leave that for another patch since exit(1) is
currently used elsewhere.

Spotted by Coverity.

Cc: Cam Macdonell <cam@cs.ualberta.ca>
Cc: qemu-stable@nongnu.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2013-06-12 13:17:53 +04:00
..
9pfs hw/9pfs: Be robust against paths without FS_IOC_GETVERSION 2013-05-28 15:23:12 +05:30
acpi refer to FWCfgState explicitly 2013-06-02 18:14:02 +03:00
alpha include: avoid useless includes of exec/ headers 2013-04-15 18:19:26 +02:00
arm exynos4210.c: register rom_mem for memory migration 2013-06-03 17:17:46 +01:00
audio remove some double-includes 2013-05-18 16:35:12 +04:00
block block: add block driver read only whitelist 2013-06-04 12:11:58 +02:00
bt sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
char char/serial: serial_ioport_write: Factor out common code 2013-06-11 23:45:44 +04:00
core pci: misc cleanups 2013-06-04 09:26:29 -05:00
cpu target-i386: Move APIC to ICC bus 2013-05-01 13:06:07 +02:00
cris hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
display Merge remote-tracking branch 'mjt/trivial-patches' into staging 2013-06-03 08:37:44 -05:00
dma xilinx_axidma: Do not set DMA .notify to NULL after notify 2013-06-10 13:04:40 +02:00
gpio Remove unneeded type casts 2013-04-19 11:36:33 +02:00
i2c hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
i386 Merge remote-tracking branch 'sstabellini/xen_fixes_20130603' into staging 2013-06-04 14:58:58 -05:00
ide ide: Set BSY bit during FLUSH 2013-06-06 11:27:27 +02:00
input vmmouse: QOM'ify 2013-04-29 08:27:50 -05:00
intc intc/xilinx_intc: Use qemu_set_irq 2013-06-11 23:45:43 +04:00
isa ich9: kill cmos_s3 2013-04-24 11:50:18 -05:00
lm32 qdev: Drop taddr properties 2013-04-20 17:54:52 +00:00
m68k hw: move char devices to hw/char/, configure via default-configs/ 2013-04-08 18:13:14 +02:00
microblaze Remove unneeded type casts 2013-04-19 11:36:33 +02:00
mips remove some double-includes 2013-05-18 16:35:12 +04:00
misc ivshmem: add missing error exit(2) 2013-06-12 13:17:53 +04:00
moxie Trivial grammar and spelling fixes 2013-05-01 20:55:21 +04:00
net Merge remote-tracking branch 'stefanha/net' into staging 2013-06-10 11:37:39 -05:00
nvram fw_cfg: fw_cfg is a singleton 2013-06-02 18:14:14 +03:00
openrisc hw: move headers to include/ 2013-04-08 18:13:10 +02:00
pci pci: add VMSTATE_MSIX 2013-06-03 11:37:44 +02:00
pci-bridge dec.c - move to pci-bridge 2013-06-02 18:13:37 +03:00
pci-host dec.c - move to pci-bridge 2013-06-02 18:13:37 +03:00
ppc remove some double-includes 2013-05-18 16:35:12 +04:00
s390x virtio-ccw: Fix unsetting of indicators. 2013-06-06 10:25:59 +02:00
scsi hw/scsi: Don't increment a boolean value 2013-06-11 23:45:44 +04:00
sd sd/sd.c: Fix "inquiry" ACMD41 2013-06-03 17:17:45 +01:00
sh4 arm: fix location of some include files 2013-04-15 15:16:01 +02:00
sparc refer to FWCfgState explicitly 2013-06-02 18:14:02 +03:00
sparc64 refer to FWCfgState explicitly 2013-06-02 18:14:02 +03:00
ssi xilinx_spips: lqspi: Fix byte/misaligned access 2013-06-03 17:17:44 +01:00
timer i.MX: Improve EPIT timer code. 2013-06-03 17:17:46 +01:00
tpm Move TPM passthrough specific command line options to backend structure 2013-04-23 10:40:40 -05:00
unicore32 console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
usb xhci: add live migration support 2013-06-03 11:38:03 +02:00
virtio qdev: fix get_fw_dev_path to support to add nothing to fw_dev_path 2013-05-30 11:44:27 -05:00
watchdog wdt_ib700: QOM'ify 2013-04-29 08:27:50 -05:00
xen hw/xen: Use g_free instead of free and fix potential memory leaks 2013-06-11 23:45:44 +04:00
xtensa sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
Makefile.objs virtio: simplify Makefile conditionals 2013-04-19 16:18:11 +02:00