Received: from eggs.gnu.org ([2001:4830:134:3::10]:41009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUcQk-0001wS-4h for qemu-devel@nongnu.org; Fri, 11 Oct 2013 09:07:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUcQe-0001Gp-1Q for qemu-devel@nongnu.org; Fri, 11 Oct 2013 09:06:57 -0400 Received: from mail.rt-rk.ftn.uns.ac.rs ([147.91.177.140]:52783 helo=mail.rt-rk.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUcQd-0001F0-RP for qemu-devel@nongnu.org; Fri, 11 Oct 2013 09:06:51 -0400 Received: from mail.rt-rk.com (mail.localdomain [127.0.0.1]) by mail.rt-rk.com (Postfix) with SMTP id B879525B6E5 for ; Fri, 11 Oct 2013 15:06:47 +0200 (CEST) From: Petar Jovanovic Date: Fri, 11 Oct 2013 15:03:57 +0200 Message-Id: <1381496638-29127-1-git-send-email-petar.jovanovic@rt-rk.com> Subject: [Qemu-devel] [PATCH] linux-user: pass correct parameter to do_shmctl() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, riku.voipio@linaro.org, petar.jovanovic@imgtec.com, aurelien@aurel32.net From: Petar Jovanovic Fix shmctl issue by passing correct parameter buf to do_shmctl(). Signed-off-by: Petar Jovanovic --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 4a14a43..1f6492e 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -3216,7 +3216,7 @@ static abi_long do_ipc(unsigned int call, int first, /* IPC_* and SHM_* command values are the same on all linux platforms */ case IPCOP_shmctl: - ret = do_shmctl(first, second, third); + ret = do_shmctl(first, second, ptr); break; default: gemu_log("Unsupported ipc call: %d (version %d)\n", call, version); -- 1.7.9.5