Received: from eggs.gnu.org ([2001:4830:134:3::10]:38526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b10ks-000127-Hq for qemu-devel@nongnu.org; Thu, 12 May 2016 20:14:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b10kn-0002pP-PP for qemu-devel@nongnu.org; Thu, 12 May 2016 20:14:58 -0400 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]:35813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b10kn-0002pF-LN for qemu-devel@nongnu.org; Thu, 12 May 2016 20:14:53 -0400 Received: by mail-qk0-x243.google.com with SMTP id n62so1260300qkc.2 for ; Thu, 12 May 2016 17:14:53 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Thu, 12 May 2016 14:13:15 -1000 Message-Id: <1463098420-29113-15-git-send-email-rth@twiddle.net> In-Reply-To: <1463098420-29113-1-git-send-email-rth@twiddle.net> References: <1463098420-29113-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PULL 14/39] translate-all: add missing munmap of the code_gen guard page for MIPS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, "Emilio G. Cota" From: "Emilio G. Cota" Signed-off-by: Emilio G. Cota Message-Id: <1461283314-2353-2-git-send-email-cota@braap.org> Signed-off-by: Richard Henderson --- translate-all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translate-all.c b/translate-all.c index 6b0ecb4..93b91ba 100644 --- a/translate-all.c +++ b/translate-all.c @@ -684,11 +684,11 @@ static inline void *alloc_code_gen_buffer(void) case 1: if (!cross_256mb(buf2, size)) { /* Success! Use the new buffer. */ - munmap(buf, size); + munmap(buf, size + qemu_real_host_page_size); break; } /* Failure. Work with what we had. */ - munmap(buf2, size); + munmap(buf2, size + qemu_real_host_page_size); /* fallthru */ default: /* Split the original buffer. Free the smaller half. */ -- 2.5.5