hw/xen_disk: aio_inflight not released in handling ioreq when nr_segments==0
commit209bef3e014ba1613759575e2c10f0ef8d64eb84
authorFeiran Zheng <famcool@gmail.com>
Wed, 9 Mar 2011 13:19:35 +0000 (9 21:19 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 15 Mar 2011 12:21:14 +0000 (15 13:21 +0100)
tree0de0ffc334bfa57ded7da2ccdfcd03f9eb581f7e
parent52f9a172b6db89ba1f4389883be805d65dd3ca8c
hw/xen_disk: aio_inflight not released in handling ioreq when nr_segments==0

In hw/xen_disk.c, async writing ioreq is leaked when
ioreq->req.nr_segments==0, because `aio_inflight` flag is not released
properly (skipped by misplaced "break").

Signed-off-by: Feiran Zheng <famcool@gmail.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/xen_disk.c