qemu-patch-raspberry4/hw/misc
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
..
macio Remove unneeded type casts 2013-04-19 11:36:33 +02:00
a9scu.c hw: move other devices to hw/misc/, configure with default-configs/ 2013-04-08 18:13:16 +02:00
applesmc.c applesmc: QOM'ify 2013-04-29 08:27:46 -05:00
arm_l2x0.c hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
arm_sysctl.c hw: move other devices to hw/misc/, configure with default-configs/ 2013-04-08 18:13:16 +02:00
cbus.c arm: fix location of some include files 2013-04-15 15:16:01 +02:00
debugexit.c hw: move other devices to hw/misc/, configure with default-configs/ 2013-04-08 18:13:16 +02:00
eccmemctl.c hw: move other devices to hw/misc/, configure with default-configs/ 2013-04-08 18:13:16 +02:00
exynos4210_pmu.c hw: move other devices to hw/misc/, configure with default-configs/ 2013-04-08 18:13:16 +02:00
imx_ccm.c hw: move other devices to hw/misc/, configure with default-configs/ 2013-04-08 18:13:16 +02:00
ivshmem.c ivshmem: add missing error exit(2) 2013-06-12 13:17:53 +04:00
lm32_sys.c remove some double-includes 2013-05-18 16:35:12 +04:00
Makefile.objs introduce a new qom device to deal with panicked event 2013-04-30 10:30:01 -05:00
max111x.c hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
milkymist-hpdmc.c hw: move other devices to hw/misc/, configure with default-configs/ 2013-04-08 18:13:16 +02:00
milkymist-pfpu.c Remove unneeded type casts 2013-04-19 11:36:33 +02:00
mst_fpga.c hw: move other devices to hw/misc/, configure with default-configs/ 2013-04-08 18:13:16 +02:00
omap_clk.c hw: move other devices to hw/misc/, configure with default-configs/ 2013-04-08 18:13:16 +02:00
omap_gpmc.c hw: move other devices to hw/misc/, configure with default-configs/ 2013-04-08 18:13:16 +02:00
omap_l4.c hw: move other devices to hw/misc/, configure with default-configs/ 2013-04-08 18:13:16 +02:00
omap_sdrc.c hw: move other devices to hw/misc/, configure with default-configs/ 2013-04-08 18:13:16 +02:00
omap_tap.c hw: move other devices to hw/misc/, configure with default-configs/ 2013-04-08 18:13:16 +02:00
pc-testdev.c hw: move other devices to hw/misc/, configure with default-configs/ 2013-04-08 18:13:16 +02:00
pci-testdev.c pci: add pci test device 2013-04-16 01:41:53 +03:00
puv3_pm.c hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
pvpanic.c pvpanic: use FWCfgState explicitly 2013-06-02 18:14:15 +03:00
pxa2xx_pcmcia.c hw: move other devices to hw/misc/, configure with default-configs/ 2013-04-08 18:13:16 +02:00
sga.c sga: QOM'ify 2013-04-29 08:27:49 -05:00
slavio_misc.c hw: move other devices to hw/misc/, configure with default-configs/ 2013-04-08 18:13:16 +02:00
tmp105.c hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
tmp105.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
vfio.c hw: move VFIO and ivshmem to hw/misc/ 2013-04-08 18:13:14 +02:00
vmport.c vmport: QOM'ify 2013-04-29 08:27:50 -05:00
zynq_slcr.c hw: move other devices to hw/misc/, configure with default-configs/ 2013-04-08 18:13:16 +02:00