g_free() in target-ppc/translate_init.c:ppc_cpu_unrealizefn() can fail due to invalid pointer being passed to it. Fix this along with a cleanup.
I have never seen ppc_cpu_unrealizefn() getting called for sPAPR guests, but I ran into this issue when I was adding unrealize call from the CPU hot removal path while working on CPU [un]hotplug support for sPAPR guests. Bharata B Rao (2): target-ppc: Use macros in opcodes table handling code target-ppc: Fix an invalid free in opcode table handling code. target-ppc/cpu.h | 3 ++- target-ppc/translate_init.c | 43 ++++++++++++++++++++++++++++++------------- 2 files changed, 32 insertions(+), 14 deletions(-) -- 1.7.11.7