summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorDavid Gibson2014-12-08 03:48:02 +0100
committerAlexander Graf2015-01-07 16:16:26 +0100
commit5f9490de566c5b092a6cfedc3c7a37a9c9dee917 (patch)
tree84fb41f4c2ec9e0eb0b3186d8c5b7277279e9da7 /scripts/checkpatch.pl
parentppc: do not use get_clock_realtime() (diff)
downloadqemu-5f9490de566c5b092a6cfedc3c7a37a9c9dee917.tar.gz
qemu-5f9490de566c5b092a6cfedc3c7a37a9c9dee917.tar.xz
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/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions