Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shmctl01: don't use hardcoded index == 0 for SHM_STAT test
Test fails on SHM_STAT testcase: shmctl01 5 TFAIL : shmctl01.c:173: shmctl01 call failed errno = 22 : Invalid argument shmctl(0, SHM_STAT, 0x601060) = -EINVAL since following commit: commit 99db46ea292780cd978d56932d9445b1e8bdafe8 Author: Manfred Spraul <manfred@colorfullife.com> Date: Tue May 14 15:46:36 2019 -0700 ipc: do cyclic id allocation for the ipc object. Don't rely on index 0 being always available, but instead use (maximum) index returned by SHM_INFO. Signed-off-by: Jan Stancek <jstancek@redhat.com> Reviewed-by: Petr Vorel <pvorel@suse.cz> Acked-by: Cyril Hrubis <chrubis@suse.cz>
- Loading branch information