diff options
author | dg <dg@FreeBSD.org> | 1994-12-22 05:18:12 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-12-22 05:18:12 +0000 |
commit | d4b8853a79eb52953e7d73ae15ab87cc91c7af98 (patch) | |
tree | 01ce918d07c48263346f3efab8cbef746f5906c3 | |
parent | 9ca60a2202b99957c28608e2f250fa6f474f4ef1 (diff) | |
download | FreeBSD-src-d4b8853a79eb52953e7d73ae15ab87cc91c7af98.zip FreeBSD-src-d4b8853a79eb52953e7d73ae15ab87cc91c7af98.tar.gz |
Fixed a benign off by one error.
-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 fa10553..62471ca 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -39,7 +39,7 @@ * from: Utah $Hdr: swap_pager.c 1.4 91/04/30$ * * @(#)swap_pager.c 8.9 (Berkeley) 3/21/94 - * $Id: swap_pager.c,v 1.18 1994/11/13 15:36:48 davidg Exp $ + * $Id: swap_pager.c,v 1.19 1994/12/19 00:02:54 davidg Exp $ */ /* @@ -387,7 +387,7 @@ _swap_pager_freespace(swp, start, size) int s; s = splbio(); - for (i = start; i < round_page(start + size - 1); i += PAGE_SIZE) { + for (i = start; i < round_page(start + size); i += PAGE_SIZE) { int valid; int *addr = swap_pager_diskaddr(swp, i, &valid); if (addr && *addr != SWB_EMPTY) { |