Author: rharabien
Date: Wed Jun 1 13:16:49 2011
New Revision: 52041
URL:
http://svn.reactos.org/svn/reactos?rev=52041&view=rev
Log:
[NTOSKRNL]
- Acquire spinlock when accessing SymbolFileListHead
Modified:
trunk/reactos/ntoskrnl/kdbg/kdb_symbols.c
Modified: trunk/reactos/ntoskrnl/kdbg/kdb_symbols.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kdbg/kdb_symbols.…
==============================================================================
--- trunk/reactos/ntoskrnl/kdbg/kdb_symbols.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/kdbg/kdb_symbols.c [iso-8859-1] Wed Jun 1 13:16:49 2011
@@ -248,6 +248,7 @@
IN PROSSYM_INFO RosSymInfo)
{
PIMAGE_SYMBOL_INFO_CACHE CacheEntry;
+ KIRQL Irql;
DPRINT("Adding symbol file: RosSymInfo = %p\n", RosSymInfo);
@@ -264,7 +265,9 @@
ASSERT(CacheEntry->FileName.Buffer);
CacheEntry->RefCount = 1;
CacheEntry->RosSymInfo = RosSymInfo;
- InsertTailList(&SymbolFileListHead, &CacheEntry->ListEntry); /* FIXME:
Lock list? */
+ KeAcquireSpinLock(&SymbolFileListLock, &Irql);
+ InsertTailList(&SymbolFileListHead, &CacheEntry->ListEntry);
+ KeReleaseSpinLock(&SymbolFileListLock, Irql);
}
/*! \brief Remove a symbol file (reference) from the cache.