summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlberto Garcia2019-03-28 17:25:09 +0100
committerKevin Wolf2019-04-02 12:04:44 +0200
commit0f0998f6219b25f54f8ab20e3803eff552af3b9c (patch)
treef19cdec7cdfeb82ff3766d513f11b72cdec673d0 /scripts
parentblock/file-posix: do not fail on unlock bytes (diff)
downloadqemu-0f0998f6219b25f54f8ab20e3803eff552af3b9c.tar.gz
qemu-0f0998f6219b25f54f8ab20e3803eff552af3b9c.tar.xz
qemu-0f0998f6219b25f54f8ab20e3803eff552af3b9c.zip
block: continue until base is found in bdrv_freeze_backing_chain() et al
All three functions that handle the BdrvChild.frozen attribute walk the backing chain from 'bs' to 'base' and stop either when 'base' is found or at the end of the chain if 'base' is NULL. However if 'base' is not found then the functions return without errors as if it was NULL. This is wrong: if the caller passed an incorrect parameter that means that there is a bug in the code. Signed-off-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions