Re: [Qemu-devel] [PATCH] block: Handle error of bdrv_getlength in bdrv_create_dirty_bitmap

2014-04-14 Thread Kevin Wolf
Am 03.04.2014 um 16:44 hat Max Reitz geschrieben: > On 02.04.2014 08:04, Fam Zheng wrote: > >bdrv_getlength could fail, check the return value before using it. > > > >Signed-off-by: Fam Zheng > >--- > > block-migration.c | 28 > > block.c | 10 ++

Re: [Qemu-devel] [PATCH] block: Handle error of bdrv_getlength in bdrv_create_dirty_bitmap

2014-04-03 Thread Max Reitz
On 02.04.2014 08:04, Fam Zheng wrote: bdrv_getlength could fail, check the return value before using it. Signed-off-by: Fam Zheng --- block-migration.c | 28 block.c | 10 -- block/mirror.c| 5 - include/block/block.h | 3

[Qemu-devel] [PATCH] block: Handle error of bdrv_getlength in bdrv_create_dirty_bitmap

2014-04-01 Thread Fam Zheng
bdrv_getlength could fail, check the return value before using it. Signed-off-by: Fam Zheng --- block-migration.c | 28 block.c | 10 -- block/mirror.c| 5 - include/block/block.h | 3 ++- 4 files changed, 38 insertions(+), 8 d