Re: [Qemu-devel] [PATCH v2] qdev: Fix use after free in qdev_init_nofail error path

2016-08-02 Thread Paolo Bonzini
On 02/08/2016 12:49, Igor Mammedov wrote: > Since 69382d8b (qdev: Fix object reference leak in case device.realize() > fails), object_property_set_bool releases the device object > in case realize's failed and device hasn't explicitly assigned > parent. It happens due to object_unparent() on erro

[Qemu-devel] [PATCH v2] qdev: Fix use after free in qdev_init_nofail error path

2016-08-02 Thread Igor Mammedov
Since 69382d8b (qdev: Fix object reference leak in case device.realize() fails), object_property_set_bool releases the device object in case realize's failed and device hasn't explicitly assigned parent. It happens due to object_unparent() on error handling path releases not only implicitly set par