summary refs log tree commit diff stats
path: root/scripts/qapi-types.py
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2014-12-08 13:48:02 +1100
committerAlexander Graf <agraf@suse.de>2015-01-07 16:16:26 +0100
commit5f9490de566c5b092a6cfedc3c7a37a9c9dee917 (patch)
tree84fb41f4c2ec9e0eb0b3186d8c5b7277279e9da7 /scripts/qapi-types.py
parent77bad151fbd2b2eed1e959ecc2c3f2ee2f080f6c (diff)
downloadfocaccia-qemu-5f9490de566c5b092a6cfedc3c7a37a9c9dee917.tar.gz
focaccia-qemu-5f9490de566c5b092a6cfedc3c7a37a9c9dee917.zip
PPC: Fix crash on spapr_tce_table_finalize()
spapr_tce_table_finalize() can SEGV if the object was not previously
realized.  In particular this can be triggered by running
         qemu-system-ppc -device spapr-tce-table,?

The basic problem is that we have mismatched initialization versus
finalization: spapr_tce_table_finalize() is attempting to undo things that
are done in spapr_tce_table_realize(), not an instance_init function.

Therefore, replace spapr_tce_table_finalize() with
spapr_tce_table_unrealize().

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Cc: qemu-stable@nongnu.org
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'scripts/qapi-types.py')
0 files changed, 0 insertions, 0 deletions