X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=ipc%2Fsyscall.c;h=52429489cde0070ab9398648ca326592e824a2a7;hb=3477d168ba61c5b0ca42d3d4642f3463609a5417;hp=0d1e32ce048eeb0ab0d8341519aedd7ead76db62;hpb=a4d3621e0d3ecf191961dc9214e4a378a7186780;p=cascardo%2Flinux.git diff --git a/ipc/syscall.c b/ipc/syscall.c index 0d1e32ce048e..52429489cde0 100644 --- a/ipc/syscall.c +++ b/ipc/syscall.c @@ -33,12 +33,12 @@ SYSCALL_DEFINE6(ipc, unsigned int, call, int, first, unsigned long, second, case SEMGET: return sys_semget(first, second, third); case SEMCTL: { - union semun fourth; + unsigned long arg; if (!ptr) return -EINVAL; - if (get_user(fourth.__pad, (void __user * __user *) ptr)) + if (get_user(arg, (unsigned long __user *) ptr)) return -EFAULT; - return sys_semctl(first, second, third, fourth); + return sys_semctl(first, second, third, arg); } case MSGSND: