From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGlJp-0005n5-6l for qemu-devel@nongnu.org; Fri, 21 Feb 2014 03:19:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGlJe-0001iv-Td for qemu-devel@nongnu.org; Fri, 21 Feb 2014 03:18:49 -0500 Received: from e7.ny.us.ibm.com ([32.97.182.137]:45040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGlJe-0001iW-OY for qemu-devel@nongnu.org; Fri, 21 Feb 2014 03:18:38 -0500 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 21 Feb 2014 03:18:38 -0500 From: Michael Roth Date: Fri, 21 Feb 2014 02:17:05 -0600 Message-Id: <1392970647-21528-30-git-send-email-mdroth@linux.vnet.ibm.com> In-Reply-To: <1392970647-21528-1-git-send-email-mdroth@linux.vnet.ibm.com> References: <1392970647-21528-1-git-send-email-mdroth@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 29/51] 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: lersek@redhat.com, qemu-stable@nongnu.org, Petar.Jovanovic@imgtec.com From: Petar Jovanovic Fix shmctl issue by passing correct parameter buf to do_shmctl(). Signed-off-by: Petar Jovanovic Signed-off-by: Riku Voipio (cherry picked from commit a29267846a52b4ca294ba3a962b74b67df7ce6d2) Signed-off-by: Michael Roth --- 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 eaaf00d..a3575e7 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