[PATCH] doCoreDump: fix return value not expect as result

Erik Skultety eskultet at redhat.com
Tue Aug 18 12:35:23 UTC 2020


On Sat, Aug 08, 2020 at 04:19:58PM +0800, Hao Wang wrote:
> From: Hao Wang <wanghao232 at huawei.com>
> Subject: [PATCH] doCoreDump: fix return value not expect as result
>
> In a case that qemuDumpToFd() return zero while VIR_CLOSE(fd) fails,
> codes will go to "cleanup" with "ret=0", resulting in unexpected return
> value. Fix that.
>
> Signed-off-by: Hao Wang <wanghao232 at huawei.com>
> ---
Reviewed-by: Erik Skultety <eskultet at redhat.com>




More information about the libvir-list mailing list