From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXRVZ-0002Ef-1k for qemu-devel@nongnu.org; Fri, 26 Sep 2014 05:08:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXRVQ-0002W7-14 for qemu-devel@nongnu.org; Fri, 26 Sep 2014 05:08:09 -0400 Received: from e23smtp05.au.ibm.com ([202.81.31.147]:53483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXRVP-0002VD-BR for qemu-devel@nongnu.org; Fri, 26 Sep 2014 05:07:59 -0400 Received: from /spool/local by e23smtp05.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 26 Sep 2014 19:07:47 +1000 Received: from d23relay08.au.ibm.com (d23relay08.au.ibm.com [9.185.71.33]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id 0ADE22BB0023 for ; Fri, 26 Sep 2014 19:07:47 +1000 (EST) Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay08.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id s8Q99Rhi26411108 for ; Fri, 26 Sep 2014 19:09:28 +1000 Received: from d23av01.au.ibm.com (localhost [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s8Q97jUU025070 for ; Fri, 26 Sep 2014 19:07:45 +1000 From: Bharata B Rao Date: Fri, 26 Sep 2014 14:37:36 +0530 Message-Id: <1411722458-21569-1-git-send-email-bharata@linux.vnet.ibm.com> Subject: [Qemu-devel] [RFC PATCH v0 0/2] target-ppc: Fix an invalid free List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: agraf@suse.de, Bharata B Rao 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