* sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):

Pass "union semun" properly in to sys_ipc, it must be passed 
by value, not by reference.
2008-04-25  David S. Miller  <davem@davemloft.net>

	* sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
	Pass "union semun" properly in to sys_ipc, it must be passed
	by value, not by reference.
This commit is contained in:
Jakub Jelinek 2008-04-29 17:07:03 +00:00
parent 7eb5e6c9bd
commit d4e92d9e08
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-04-25 David S. Miller <davem@davemloft.net>
* sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
Pass "union semun" properly in to sys_ipc, it must be passed
by value, not by reference.
2008-04-22 Jakub Jelinek <jakub@redhat.com>
* nscd/Makefile (nscd-cflags): Set back to -fpie.

View File

@ -54,5 +54,5 @@ semctl (int semid, int semnum, int cmd, ...)
va_end (ap);
return INLINE_SYSCALL (ipc, 5, IPCOP_semctl, semid, semnum, cmd,
CHECK_SEMCTL (&arg, semid, cmd));
CHECK_SEMCTL (&arg, semid, cmd)->array);
}