block: Prepare for NULL BDS
commit5433c24f0f9306c82ad9bcc2b2b586e5f0ed8fa5
authorMax Reitz <mreitz@redhat.com>
Mon, 19 Oct 2015 15:53:29 +0000 (19 17:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 23 Oct 2015 16:18:23 +0000 (23 18:18 +0200)
tree8b2eb29767ef12bf28d528050a0463b3e9458f5b
parent0c3c36d651922ebe9244e68e6d9ed14cdfcac9fd
block: Prepare for NULL BDS

blk_bs() will not necessarily return a non-NULL value any more (unless
blk_is_available() is true or it can be assumed to otherwise, e.g.
because it is called immediately after a successful blk_new_with_bs() or
blk_new_open()).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block/qapi.c
blockdev.c
hw/block/xen_disk.c
migration/block.c
monitor.c