qemu-e2k/hw/sd
Andreas Färber 794cbc26eb sd: Avoid access to NULL BlockDriverState
Commit 4f8a066b5f (blockdev: Remove IF_*
check for read-only blockdev_init) added a usage of bdrv_is_read_only()
to sd_init(), which is called for versatilepb, versatileab and
xilinx-zynq-a9 machines among others with NULL argument by default,
causing the new qom-test to fail.

Add a check to prevent this.

Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2013-10-17 10:15:18 +02:00
..
Makefile.objs hw: move SD/MMC devices to hw/sd/, configure with default-configs/ 2013-04-08 18:13:14 +02:00
milkymist-memcard.c blockdev: Remove IF_* check for read-only blockdev_init 2013-10-11 16:50:01 +02:00
omap_mmc.c blockdev: Remove IF_* check for read-only blockdev_init 2013-10-11 16:50:01 +02:00
pl181.c blockdev: Remove IF_* check for read-only blockdev_init 2013-10-11 16:50:01 +02:00
pxa2xx_mmci.c blockdev: Remove IF_* check for read-only blockdev_init 2013-10-11 16:50:01 +02:00
sd.c sd: Avoid access to NULL BlockDriverState 2013-10-17 10:15:18 +02:00
sdhci.c blockdev: Remove IF_* check for read-only blockdev_init 2013-10-11 16:50:01 +02:00
sdhci.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
ssi-sd.c blockdev: Remove IF_* check for read-only blockdev_init 2013-10-11 16:50:01 +02:00