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)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 29 Nov 2013 09:42:14 +0000 (11:42 +0200)
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>
linux-user/syscall.c

index 5702d4e..efd1453 100644 (file)
@@ -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);