Commit 032e7cc1 authored by David S. Miller's avatar David S. Miller

[SPARC64]: Fix sys_shmat handling for 64-bit binaries.

parent 4df914aa
......@@ -223,9 +223,15 @@ asmlinkage int sys_ipc (unsigned call, int first, int second, unsigned long thir
}
if (call <= SHMCTL)
switch (call) {
case SHMAT:
err = sys_shmat (first, (char *) ptr, second, (ulong *) third);
case SHMAT: {
ulong raddr;
err = sys_shmat (first, (char *) ptr, second, &raddr);
if (!err) {
if (put_user(raddr, (ulong __user *) third))
err = -EFAULT;
}
goto out;
}
case SHMDT:
err = sys_shmdt ((char *)ptr);
goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment