qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH v3] block: Handle error of bdrv_getlength in bdrv_create_dirty_bitmap
Date: Thu, 17 Apr 2014 10:49:16 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Am 16.04.2014 um 23:36 hat Max Reitz geschrieben:
> On 16.04.2014 03:34, Fam Zheng wrote:
> >bdrv_getlength could fail, check the return value before using it.
> >Return NULL and set errno if it fails. Callers are updated to handle
> >the error case.
> >
> >Signed-off-by: Fam Zheng <address@hidden>
> >
> >---
> >v3: Fix errno (Max)
> >
> >Signed-off-by: Fam Zheng <address@hidden>
> >---
> >  block-migration.c     | 30 ++++++++++++++++++++++++++----
> >  block.c               | 11 +++++++++--
> >  block/mirror.c        |  5 ++++-
> >  include/block/block.h |  3 ++-
> >  4 files changed, 41 insertions(+), 8 deletions(-)
> 
> Reviewed-by: Max Reitz <address@hidden>

Thanks, applied to the block branch.

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]