OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libvhost-user: return on error in vu_log_queue_fill()
[qmiga/qemu.git]
/
contrib
/
libvhost-user
/
libvhost-user.c
diff --git
a/contrib/libvhost-user/libvhost-user.c
b/contrib/libvhost-user/libvhost-user.c
index
4ebfa4c
..
9f1285b
100644
(file)
--- a/
contrib/libvhost-user/libvhost-user.c
+++ b/
contrib/libvhost-user/libvhost-user.c
@@
-2733,6
+2733,7
@@
vu_log_queue_fill(VuDev *dev, VuVirtq *vq,
if (lduw_le_p(&desc[i].flags) & VRING_DESC_F_INDIRECT) {
if (ldl_le_p(&desc[i].len) % sizeof(struct vring_desc)) {
vu_panic(dev, "Invalid size for indirect buffer table");
+ return;
}
/* loop over the indirect descriptor table */