qemu-irix/hw
Peter Maydell 0719e71e52 sd.c: Handle NULL block backend in sd_get_inserted()
The sd.c SD card emulation code can be in a state where the
SDState BlockBackend pointer is NULL; this is treated as
"card not present". Add a missing check to sd_get_inserted()
so that we don't segfault in this situation.

(This could be provoked by the guest writing to the SDHCI
register to do a reset on a xilinx-zynq-a9 board; it will
also happen at startup when sdhci implements its DeviceClass
reset method.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Message-id: 1456493044-10025-2-git-send-email-peter.maydell@linaro.org
2016-03-04 11:30:17 +00:00
..
9pfs all: Clean up includes 2016-02-23 12:43:05 +00:00
acpi ich9: Remove enable_tco arguments from init functions 2016-02-25 13:14:19 +02:00
alpha
arm virt: Lift the maximum RAM limit from 30GB to 255GB 2016-03-04 11:30:16 +00:00
audio all: Clean up includes 2016-02-23 12:43:05 +00:00
block virtio-blk: do not use vring in dataplane 2016-02-25 13:14:18 +02:00
bt
char
core migration: allow machine to enforce configuration section migration 2016-02-28 16:19:02 +11:00
cpu
cris
display qxl: lock current_async update in qxl_soft_reset 2016-03-01 07:51:32 +01:00
dma etraxfs_dma: Dont forward zero-length payload to clients 2016-02-20 00:17:48 +01:00
gpio ARM: PL061: Checking register r/w accesses to reserved area 2016-02-26 15:09:42 +00:00
i2c
i386 q35: No need to check gigabyte_align 2016-02-25 13:14:19 +02:00
ide ahci: prohibit "restarting" the FIS or CLB engines 2016-02-10 13:29:40 -05:00
input qapi: rename input buttons 2016-03-01 08:19:07 +01:00
intc xics: report errors with the QEMU Error API 2016-02-28 16:19:02 +11:00
ipack
ipmi ipmi: sensor number should not exceed MAX_SENSORS 2016-02-16 16:41:25 +01:00
isa ich9: Remove enable_tco arguments from init functions 2016-02-25 13:14:19 +02:00
lm32
m68k
mem move get_current_ram_size to virtio-balloon.c 2016-02-23 12:55:16 +02:00
microblaze
mips
misc dbdma: warn when using unassigned channel 2016-02-28 16:19:02 +11:00
moxie
net all: Clean up includes 2016-02-23 12:43:05 +00:00
nvram fw_cfg: unbreak migration compatibility for 2.4 and earlier machines 2016-02-26 10:06:40 +01:00
openrisc
pci pci core: function pci_bus_init() cleanup 2016-02-25 13:14:18 +02:00
pci-bridge aer: impove pcie_aer_init to support vfio device 2016-02-19 09:42:28 -07:00
pci-host vhost, virtio, pci, pxe 2016-02-19 10:50:37 +00:00
pcmcia
ppc xics: report errors with the QEMU Error API 2016-02-28 16:19:02 +11:00
s390x s390x/css: only suspend when enabled by orb 2016-03-01 12:15:29 +01:00
scsi virtio-scsi: do not use vring in dataplane 2016-02-25 13:14:19 +02:00
sd sd.c: Handle NULL block backend in sd_get_inserted() 2016-03-04 11:30:17 +00:00
sh4
smbios
sparc
sparc64
ssi
timer tusb6010: move from hw/timer to hw/usb 2016-02-23 10:38:00 +01:00
tpm
tricore
unicore32
usb usb-redirect: Avoid double free of data 2016-02-29 11:45:26 +01:00
vfio all: Clean up includes 2016-02-23 12:43:05 +00:00
virtio virtio-rng: ask for more data if queue is not fully drained 2016-03-03 17:42:26 +05:30
watchdog watchdog/diag288: avoid race condition on expired watchdog 2016-03-01 12:15:28 +01:00
xen xen: drop XenXC and associated interface wrappers 2016-02-10 12:01:24 +00:00
xenpv
xtensa
Makefile.objs