From: "Gonglei (Arei)" <arei.gong...@huawei.com> Signed-off-by: Gonglei <arei.gong...@huawei.com> Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com> --- hw/block/xen_disk.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/hw/block/xen_disk.c b/hw/block/xen_disk.c index aed5b5b..a221d0b 100644 --- a/hw/block/xen_disk.c +++ b/hw/block/xen_disk.c @@ -589,6 +589,7 @@ static int blk_send_response_one(struct ioreq *ioreq) break; default: dst = NULL; + return 0; } memcpy(dst, &resp, sizeof(resp)); blkdev->rings.common.rsp_prod_pvt++; -- 1.8.3.1