ipcs: fix ipc_sem_get_limits()

Reported-by: https://github.com/AndrewIrcha
Addresses: e5995acda2 (commitcomment-13200369)
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2015-09-15 09:50:08 +02:00
parent 1d15c4b273
commit 53650755e0
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ int ipc_sem_get_limits(struct ipc_limits *lim)
}
if (rc == 4) {
if (rc != 4) {
struct seminfo seminfo;
union semun arg = { .array = (ushort *) &seminfo };