commit | a46fc9c95012f3d7ed2b29b59f042246d62a08d7 | [log] [tgz] |
---|---|---|
author | Max Reitz <mreitz@redhat.com> | Mon Oct 19 17:53:27 2015 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri Oct 23 18:18:23 2015 +0200 |
tree | 7710cbe1e5eaeaf6b35fbd43222fd63eb34ec80c | |
parent | c09ba36c9ab62e3043041e429205f57ffbe3ba8b [diff] |
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>