From patchwork Fri Nov 29 13:43:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 295332 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 74F152C00A6 for ; Sat, 30 Nov 2013 00:47:24 +1100 (EST) Received: from localhost ([::1]:47428 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmOPf-0005SA-Mu for incoming@patchwork.ozlabs.org; Fri, 29 Nov 2013 08:47:19 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmOLp-00086X-KM for qemu-devel@nongnu.org; Fri, 29 Nov 2013 08:43:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VmOLd-00064u-TO for qemu-devel@nongnu.org; Fri, 29 Nov 2013 08:43:21 -0500 Received: from afflict.kos.to ([92.243.29.197]:52901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmOLd-00064W-Mx for qemu-devel@nongnu.org; Fri, 29 Nov 2013 08:43:09 -0500 Received: from kos.to (91-157-196-38.elisa-laajakaista.fi [91.157.196.38]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id 4A5BD26560 for ; Fri, 29 Nov 2013 14:43:08 +0100 (CET) Received: from voipio (uid 1000) (envelope-from voipio@kos.to) id 5e024c by kos.to (DragonFly Mail Agent); Fri, 29 Nov 2013 15:43:07 +0200 From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Fri, 29 Nov 2013 15:43:06 +0200 Message-Id: X-Mailer: git-send-email 1.8.1.2 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 92.243.29.197 Cc: Petar Jovanovic Subject: [Qemu-devel] [PATCH 5/5] linux-user: pass correct parameter to do_shmctl() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Petar Jovanovic Fix shmctl issue by passing correct parameter buf to do_shmctl(). Signed-off-by: Petar Jovanovic Signed-off-by: Riku Voipio --- 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 5702d4e..efd1453 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -3215,7 +3215,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);