diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-08-05 07:37:47 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-08-05 07:37:47 +0000 |
commit | dbf5b35450cfd6b83f5ae5c0137769164efd6aa0 (patch) | |
tree | ad4008b7ec55c2ac60a467e70c9e0b39fa81a6a6 /sys/vm | |
parent | 2eb12feb294097f0d248ae188dca2b2649ed2fb4 (diff) |
Off by one error, caused rmfree panics on reboot
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/swap_pager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 84a1b37126e..eb36eb0ae11 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -1,4 +1,4 @@ -/* $OpenBSD: swap_pager.c,v 1.5 1996/08/02 00:05:57 niklas Exp $ */ +/* $OpenBSD: swap_pager.c,v 1.6 1996/08/05 07:37:46 niklas Exp $ */ /* $NetBSD: swap_pager.c,v 1.27 1996/03/16 23:15:20 christos Exp $ */ /* @@ -1098,7 +1098,7 @@ swap_pager_remove(pager, from, to) */ if (to) { to_blk = to / bsize; - if (to_blk > swp->sw_nblocks) { + if (to_blk >= swp->sw_nblocks) { to_blk = swp->sw_nblocks; to_bit = 0; } else |