summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMax Reitz2015-10-19 17:53:27 +0200
committerKevin Wolf2015-10-23 18:18:23 +0200
commita46fc9c95012f3d7ed2b29b59f042246d62a08d7 (patch)
tree7710cbe1e5eaeaf6b35fbd43222fd63eb34ec80c /include
parentblock: Fail requests to empty BlockBackend (diff)
downloadqemu-a46fc9c95012f3d7ed2b29b59f042246d62a08d7.tar.gz
qemu-a46fc9c95012f3d7ed2b29b59f042246d62a08d7.tar.xz
qemu-a46fc9c95012f3d7ed2b29b59f042246d62a08d7.zip
block: Prepare remaining BB functions for NULL BDS
There are several BlockBackend functions which, in theory, cannot fail. This patch makes them cope with the BlockDriverState pointer being NULL by making them fall back to some default action like ignoring the value in setters and returning the default in getters. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions