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

2014-04-29 Thread Kevin Wolf
Am 29.04.2014 um 09:53 hat Fam Zheng geschrieben: > bdrv_get_info could fail. Add check before using the returned value. > > Signed-off-by: Fam Zheng > > --- > v3: Don't leak things, jump to immediate_exit. (Kevin) > > Signed-off-by: Fam Zheng > --- > block/mirror.c | 6 +- > 1 file chang

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

2014-04-29 Thread Fam Zheng
bdrv_get_info could fail. Add check before using the returned value. Signed-off-by: Fam Zheng --- v3: Don't leak things, jump to immediate_exit. (Kevin) Signed-off-by: Fam Zheng --- block/mirror.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/block/mirror.c b/block/