[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/2] qcow2: Return useful error code in refcount
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH 2/2] qcow2: Return useful error code in refcount_init() |
Date: |
Fri, 30 May 2014 18:33:24 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Am 29.05.2014 um 00:19 hat Max Reitz geschrieben:
> If bdrv_pread() returns an error, it is very unlikely that it was
> ENOMEM. In this case, the return value should be passed along; as
> bdrv_pread() will always either return the number of bytes read or a
> negative value (the error code), the condition for checking whether
> bdrv_pread() failed can be simplified (and clarified) as well.
>
> Signed-off-by: Max Reitz <address@hidden>
Thanks, I applied this to my local branch with the malloc changes that
you depend on. I'll either merge it together with my patches or include
it in a v3 of my series.
Kevin