diff options
author | Alberto Garcia <berto@igalia.com> | 2019-03-28 18:25:09 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2019-04-02 12:04:44 +0200 |
commit | 0f0998f6219b25f54f8ab20e3803eff552af3b9c (patch) | |
tree | f19cdec7cdfeb82ff3766d513f11b72cdec673d0 /block/stream.c | |
parent | 696aaaed579ac5bf5fa336216909b46d3d8f07a8 (diff) |
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 'block/stream.c')
0 files changed, 0 insertions, 0 deletions