projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8efc936
)
xen_disk: fix possible null-ptr dereference
author
Gonglei (Arei)
<arei.gonglei@huawei.com>
Mon, 28 Jul 2014 06:03:45 +0000
(06:03 +0000)
committer
Kevin Wolf
<kwolf@redhat.com>
Fri, 15 Aug 2014 13:07:13 +0000
(15:07 +0200)
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/xen_disk.c
patch
|
blob
|
history
diff --git
a/hw/block/xen_disk.c
b/hw/block/xen_disk.c
index aed5b5b3e93f8c03a817ed7abf8204b03e096b37..a221d0bfca7fc18c2d0c215af9d627a6ac6247f4 100644
(file)
--- 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++;