projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5f27e8
)
qom: Fix object_initialize_with_type() assertion
author
Andreas Färber
<afaerber@suse.de>
Sun, 19 Feb 2012 23:49:07 +0000
(
00:49
+0100)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Wed, 22 Feb 2012 15:02:19 +0000
(09:02 -0600)
Assert the object is at least sizeof(Object), not sizeof(ObjectClass).
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qom/object.c
patch
|
blob
|
history
diff --git
a/qom/object.c
b/qom/object.c
index
941c291
..
d858c04
100644
(file)
--- a/
qom/object.c
+++ b/
qom/object.c
@@
-264,7
+264,7
@@
void object_initialize_with_type(void *data, TypeImpl *type)
Object *obj = data;
g_assert(type != NULL);
- g_assert(type->instance_size >= sizeof(Object
Class
));
+ g_assert(type->instance_size >= sizeof(Object));
type_class_init(type);
g_assert(type->abstract == false);