OSDN Git Service

fix: avoid an infinite loop or a dangling pointer problem in img_commit
authorsochin.jiang <sochin.jiang@huawei.com>
Thu, 15 Jun 2017 06:47:33 +0000 (14:47 +0800)
committerMax Reitz <mreitz@redhat.com>
Mon, 26 Jun 2017 12:54:46 +0000 (14:54 +0200)
commit4172a00373b2c81374293becc02b16b7f8c76659
treefd448d57f39b13a48460c626bc6d3a49e6e7ccca
parentf5a5ca796932d04cb2a1cb9382a55f72795b3e06
fix: avoid an infinite loop or a dangling pointer problem in img_commit

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 <sochin.jiang@huawei.com>
Message-id: 1497509253-28941-1-git-send-email-sochin.jiang@huawei.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
blockjob.c
include/block/blockjob.h
qemu-img.c