On 02/09/2015 10:11 AM, Max Reitz wrote: > 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 > --- > block/block-backend.c | 76 ++++++++++++++++++++++++++++++++++++++++----------- > 1 file changed, 60 insertions(+), 16 deletions(-) > Reviewed-by: Eric Blake -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org