From: Alan Cox Date: Sat, 3 Jan 2015 15:49:23 +0000 (+0000) Subject: swap.c: Fix off by one X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=6fa0de6b1272d390b8ff8e7092fb8fff1ab0022a;p=FUZIX.git swap.c: Fix off by one --- 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);