diff options
author | Gonglei (Arei) | 2014-07-28 08:03:45 +0200 |
---|---|---|
committer | Kevin Wolf | 2014-08-15 15:07:13 +0200 |
commit | 8cced121436a3298e5866dbfaec91cd475ad59cf (patch) | |
tree | f11bc3d9ca923927148711d963332527d60cb353 /hw/block | |
parent | configure: explicitly state version requirements to devel packages (diff) | |
download | qemu-8cced121436a3298e5866dbfaec91cd475ad59cf.tar.gz qemu-8cced121436a3298e5866dbfaec91cd475ad59cf.tar.xz qemu-8cced121436a3298e5866dbfaec91cd475ad59cf.zip |
xen_disk: fix possible null-ptr dereference
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/block')
-rw-r--r-- | hw/block/xen_disk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/block/xen_disk.c b/hw/block/xen_disk.c index aed5b5b3e9..a221d0bfca 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++; |