]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
linux-user: pass correct parameter to do_shmctl()
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Wed, 30 Oct 2013 13:46:32 +0000 (14:46 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 21 Feb 2014 04:24:21 +0000 (22:24 -0600)
Fix shmctl issue by passing correct parameter buf to do_shmctl().

Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
(cherry picked from commit a29267846a52b4ca294ba3a962b74b67df7ce6d2)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
linux-user/syscall.c

index eaaf00ddd002597e90cf291e23c2e66b6d583521..a3575e7c8ba0d7f3ee655c4ffa63101492cd3f24 100644 (file)
@@ -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);