diff options
author | alfred <alfred@FreeBSD.org> | 2003-02-16 16:12:10 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2003-02-16 16:12:10 +0000 |
commit | 81da3fbe2a40d9b80c8e96af564180f8aa22074e (patch) | |
tree | 1740092088adabb2ba13f6a594a4666885decd62 /sys | |
parent | 9948f76f416fc3d2e93b6c156144165940c3d0d1 (diff) | |
download | FreeBSD-src-81da3fbe2a40d9b80c8e96af564180f8aa22074e.zip FreeBSD-src-81da3fbe2a40d9b80c8e96af564180f8aa22074e.tar.gz |
Fix logic in loop so it actually executes.
Pointed out by: fjoe
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/sysv_shm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c index 1b0954b..97f9afb 100644 --- a/sys/kern/sysv_shm.c +++ b/sys/kern/sysv_shm.c @@ -811,7 +811,7 @@ shminit() int i; TUNABLE_INT_FETCH("kern.ipc.shmmaxpgs", &shminfo.shmall); - for (i = PAGE_SIZE; i < 0; i--) { + for (i = PAGE_SIZE; i > 0; i--) { shminfo.shmmax = shminfo.shmall * PAGE_SIZE; if (shminfo.shmmax >= shminfo.shmall) break; |