From 89f9caf0b6f08a4bc84ea626fc594da4b80ead9f Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Tue, 29 Oct 2013 17:45:24 +0000 Subject: [PATCH] fix off-by-one error in disk cache, existing at least since r580 git-svn-id: svn://kolibrios.org@4133 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/blkdev/disk_cache.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/blkdev/disk_cache.inc b/kernel/trunk/blkdev/disk_cache.inc index 565a6d5881..45d51b4ef2 100644 --- a/kernel/trunk/blkdev/disk_cache.inc +++ b/kernel/trunk/blkdev/disk_cache.inc @@ -512,7 +512,7 @@ disk_init_cache: push edi mov edi, [esi+DISK.SysCache.pointer] - lea ecx, [ecx*3] + lea ecx, [(ecx+1)*3] xor eax, eax rep stosd pop edi @@ -527,7 +527,7 @@ disk_init_cache: push edi mov edi, [esi+DISK.AppCache.pointer] - lea ecx, [ecx*3] + lea ecx, [(ecx+1)*3] xor eax, eax rep stosd pop edi