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:
parent
1d15c4b273
commit
53650755e0
|
@ -53,7 +53,7 @@ int ipc_sem_get_limits(struct ipc_limits *lim)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rc == 4) {
|
if (rc != 4) {
|
||||||
struct seminfo seminfo;
|
struct seminfo seminfo;
|
||||||
union semun arg = { .array = (ushort *) &seminfo };
|
union semun arg = { .array = (ushort *) &seminfo };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue