diff options
author | Alfred Perlstein <alfred@FreeBSD.org> | 2003-02-16 16:12:10 +0000 |
---|---|---|
committer | Alfred Perlstein <alfred@FreeBSD.org> | 2003-02-16 16:12:10 +0000 |
commit | 9d4156aed31c055ba32bc23b2a53d885002de085 (patch) | |
tree | 1740092088adabb2ba13f6a594a4666885decd62 | |
parent | 190ff54ebb166558d461f3b0e817d993cd624a44 (diff) |
Notes
-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 1b0954bf8b059..97f9afb3cad42 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; |