提交 020cfb05 编写于 作者: D David S. Miller

[SPARC64]: Fix args to 64-bit sys_semctl() via sys_ipc().

Second and third arguments were swapped for whatever reason.

Reported by Tom Callaway.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b69d3987
......@@ -454,8 +454,8 @@ asmlinkage long sys_ipc(unsigned int call, int first, unsigned long second,
err = sys_semget(first, (int)second, (int)third);
goto out;
case SEMCTL: {
err = sys_semctl(first, third,
(int)second | IPC_64,
err = sys_semctl(first, second,
(int)third | IPC_64,
(union semun) ptr);
goto out;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册