diff options
author | Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp> | 2025-09-24 13:37:20 +0900 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-09-24 09:23:19 +0200 |
commit | 62e82053fc676e9493dc2c2072352634b8cd655d (patch) | |
tree | ec544043cf4f92aba763992eb6262b879c539ff0 /scripts/lib/kdoc/kdoc_files.py | |
parent | db05b0d21ec1e0532cf5f5103ae6520a838d96f9 (diff) | |
download | qemu-62e82053fc676e9493dc2c2072352634b8cd655d.zip qemu-62e82053fc676e9493dc2c2072352634b8cd655d.tar.gz qemu-62e82053fc676e9493dc2c2072352634b8cd655d.tar.bz2 |
docs/devel: Do not unparent in instance_finalize()
Children are automatically unparented so manually unparenting is
unnecessary.
Worse, automatic unparenting happens before the instance_finalize()
callback of the parent gets called, so object_unparent() calls in
the callback will refer to objects that are already unparented, which
is semantically incorrect.
Remove the instruction to call object_unparent(), and the exception
of the "do not call object_unparent()" rule for instance_finalize().
Signed-off-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Link: https://lore.kernel.org/r/20250924-use-v4-1-07c6c598f53d@rsg.ci.i.u-tokyo.ac.jp
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions