[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH] fix: avoid an infinite loop or a dangling point
From: |
Max Reitz |
Subject: |
Re: [Qemu-block] [PATCH] fix: avoid an infinite loop or a dangling pointer problem in img_commit |
Date: |
Fri, 16 Jun 2017 15:27:22 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 |
On 2017-06-15 08:47, sochin.jiang wrote:
> From: "sochin.jiang" <address@hidden>
>
> img_commit could fall into an infinite loop calling run_block_job() if
> its blockjob fails on any I/O error, fix this already known problem.
>
> Signed-off-by: sochin.jiang <address@hidden>
> ---
> blockjob.c | 4 ++--
> include/block/blockjob.h | 18 ++++++++++++++++++
> qemu-img.c | 20 +++++++++++++-------
> 3 files changed, 33 insertions(+), 9 deletions(-)
Thanks! I've applied the patch to my block branch:
https://github.com/XanClic/qemu/commits/block
PS: In the future, please change the subject prefix to "PATCH v2" (etc.)
for updated versions of a patch.
Max
signature.asc
Description: OpenPGP digital signature