Author: cgutman
Date: Tue Jun 2 05:30:52 2009
New Revision: 41248
URL:
http://svn.reactos.org/svn/reactos?rev=41248&view=rev
Log:
- Use MmFreeContiguousMemorySpecifyCache to free memory allocated by
MmAllocateContiguousMemorySpecifyCache in HalAllocateCommonBuffer
Modified:
trunk/reactos/hal/halx86/generic/dma.c
Modified: trunk/reactos/hal/halx86/generic/dma.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/dma.c?r…
==============================================================================
--- trunk/reactos/hal/halx86/generic/dma.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halx86/generic/dma.c [iso-8859-1] Tue Jun 2 05:30:52 2009
@@ -903,7 +903,9 @@
PVOID VirtualAddress,
BOOLEAN CacheEnabled)
{
- MmFreeContiguousMemory(VirtualAddress);
+ MmFreeContiguousMemorySpecifyCache(VirtualAddress,
+ Length,
+ CacheEnabled ? MmCached : MmNonCached);
}
/**