Searched hist:"0 f0998f6219b25f54f8ab20e3803eff552af3b9c" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/ |
H A D | block.c | diff 0f0998f6219b25f54f8ab20e3803eff552af3b9c Thu Mar 28 11:25:09 CDT 2019 Alberto Garcia <berto@igalia.com> 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>
|