diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2014-12-08 13:48:02 +1100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2015-01-07 16:16:26 +0100 |
commit | 5f9490de566c5b092a6cfedc3c7a37a9c9dee917 (patch) | |
tree | 84fb41f4c2ec9e0eb0b3186d8c5b7277279e9da7 /roms | |
parent | 77bad151fbd2b2eed1e959ecc2c3f2ee2f080f6c (diff) | |
download | qemu-5f9490de566c5b092a6cfedc3c7a37a9c9dee917.tar.gz qemu-5f9490de566c5b092a6cfedc3c7a37a9c9dee917.tar.bz2 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 'roms')
0 files changed, 0 insertions, 0 deletions