diff options
author | Alexander Barabash | 2012-02-22 18:22:26 +0100 |
---|---|---|
committer | Anthony Liguori | 2012-02-22 20:24:30 +0100 |
commit | f0cdc966fb8998bc6acc15fbd360e52061495557 (patch) | |
tree | ea0db3d4a80842fee1e2f560acf085688ba4eacd /hw/baum.h | |
parent | cpu defs: uncomment empty extfeatures_ecx definition for Opteron_G1 (v2) (diff) | |
download | qemu-f0cdc966fb8998bc6acc15fbd360e52061495557.tar.gz qemu-f0cdc966fb8998bc6acc15fbd360e52061495557.tar.xz qemu-f0cdc966fb8998bc6acc15fbd360e52061495557.zip |
qom: In function object_set_link_property(), first call object_ref(), then object_unref().
In the old implementation, if the new value of the property links
to the same object, as the old value, that object is first unref-ed,
and then ref-ed. This leads to unintended deinitialization of that object.
In the new implementation, this is fixed.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alexander Barabash <alexander_barabash@mentor.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/baum.h')
0 files changed, 0 insertions, 0 deletions