From: John Hodge Date: Sun, 27 Dec 2009 03:43:07 +0000 (+0800) Subject: Fixed bug in Inode_ClearCache X-Git-Tag: rel0.06~355 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=02dd2b97e3f4e8d52e49be1f2c90cdbc04545237;p=tpg%2Facess2.git Fixed bug in Inode_ClearCache --- diff --git a/Kernel/vfs/nodecache.c b/Kernel/vfs/nodecache.c index a85e5184..c503e9cb 100644 --- a/Kernel/vfs/nodecache.c +++ b/Kernel/vfs/nodecache.c @@ -167,7 +167,7 @@ void Inode_ClearCache(int Handle) cache && cache->Handle < Handle; prev = cache, cache = cache->Next ); - if(!cache) return; + if(!cache || cache->Handle != Handle) return; // Search Cache ent = cache->FirstNode;