Re: [Qemu-devel] [PATCH v2] mirror: Check for bdrv_get_info result

2014-04-28 Thread Kevin Wolf
Am 28.04.2014 um 04:57 hat Fam Zheng geschrieben: > bdrv_get_info could fail. Add check before using the returned value. > > Signed-off-by: Fam Zheng > > --- > V2: Handle error case (Stefan). > > Signed-off-by: Fam Zheng > --- > block/mirror.c | 6 +- > 1 file changed, 5 insertions(+), 1

[Qemu-devel] [PATCH v2] mirror: Check for bdrv_get_info result

2014-04-27 Thread Fam Zheng
bdrv_get_info could fail. Add check before using the returned value. Signed-off-by: Fam Zheng --- V2: Handle error case (Stefan). Signed-off-by: Fam Zheng --- block/mirror.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/block/mirror.c b/block/mirror.c index 2618c37.