From 6fa0de6b1272d390b8ff8e7092fb8fff1ab0022a Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 3 Jan 2015 15:49:23 +0000 Subject: [PATCH] swap.c: Fix off by one --- Kernel/swap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/swap.c b/Kernel/swap.c index f9b9476c..8f206f0c 100644 --- a/Kernel/swap.c +++ b/Kernel/swap.c @@ -172,7 +172,7 @@ static ptptr swapvictim(ptptr p, int notself) } } c++; - if (c > ptab_end) + if (c == ptab_end) c = ptab; } while (c != getproc_nextp); -- 2.34.1