diff options
Diffstat (limited to 'sys/vm/swap_pager.c')
-rw-r--r-- | sys/vm/swap_pager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index d2189f2..faca864 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -2569,7 +2569,7 @@ swaponvp(td, vp, dev, nblks) * Do not free the first block in order to avoid overwriting * any bsd label at the front of the partition */ - blist_free(sp->sw_blist, 1, nblks); + blist_free(sp->sw_blist, 1, nblks - 1); TAILQ_INSERT_TAIL(&swtailq, sp, sw_list); nswapdev++; |