diff options
| author | Fam Zheng | 2016-08-02 05:41:41 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2016-08-03 18:44:57 +0200 |
| commit | 0d4104e5760221547fad158bbbb655a4e4c22b50 (patch) | |
| tree | 08d271d2e0af843ebe9c5075906e20224c2407f8 /util/iov.c | |
| parent | Reorganize help output of '-display' option (diff) | |
| download | qemu-0d4104e5760221547fad158bbbb655a4e4c22b50.tar.gz qemu-0d4104e5760221547fad158bbbb655a4e4c22b50.tar.xz qemu-0d4104e5760221547fad158bbbb655a4e4c22b50.zip | |
qdev: Fix use after free in qdev_init_nofail error path
Since 69382d8b (qdev: Fix object reference leak in case device.realize()
fails), object_property_set_bool could release the object. The error
path wants the type name, so hold an reference before realizing it.
Cc: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <1470109301-12966-1-git-send-email-famz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util/iov.c')
0 files changed, 0 insertions, 0 deletions
