]> git.proxmox.com Git - qemu.git/commit - qom/object.c
qom: Fix object_initialize_with_type() assertion
authorAndreas Färber <afaerber@suse.de>
Sun, 19 Feb 2012 23:49:07 +0000 (00:49 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 22 Feb 2012 15:02:19 +0000 (09:02 -0600)
commit258b2c425813eaff87ee3231beb3719cf1e60397
treeb567b5b09956bbbb615e64f8825ea4379e412acc
parentd5f27e88699f14c802d66c01de70e5ea37b7153a
qom: Fix object_initialize_with_type() assertion

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