Andreas Färber 794cbc26eb sd: Avoid access to NULL BlockDriverState
Commit 4f8a066b5fc254eeaabbbde56ba4f5b29cc68fdf (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
..
2013-09-30 17:15:01 -05:00
2013-09-03 12:33:32 -05:00
2013-09-03 12:31:07 -05:00
2013-09-03 12:33:32 -05:00
2013-09-18 11:13:29 +02:00
2013-07-29 21:06:57 +02:00
2013-07-29 21:07:02 +02:00
2013-09-30 17:15:01 -05:00
2013-10-11 16:49:59 +02:00
2013-09-03 12:30:51 -05:00
2013-07-31 23:25:41 +02:00
2013-09-09 18:42:22 +02:00
2013-09-30 17:15:01 -05:00
2013-09-03 12:31:07 -05:00
2013-09-30 17:15:01 -05:00
2013-09-03 12:33:32 -05:00
2013-08-28 10:16:47 +03:00
2013-09-03 12:31:07 -05:00
2013-07-29 21:07:01 +02:00
2013-08-22 19:10:27 +02:00
2013-09-03 12:31:07 -05:00
2013-09-03 12:31:07 -05:00