mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 02:36:13 +00:00
[NTOSKRNL]
- Fix a page reference leak when reading or writing pages to the swap file svn path=/trunk/; revision=54689
This commit is contained in:
parent
6146fd09b2
commit
35c9fc7ae8
1 changed files with 0 additions and 2 deletions
|
@ -253,7 +253,6 @@ MmWriteToSwapPage(SWAPENTRY SwapEntry, PFN_NUMBER Page)
|
|||
|
||||
MmInitializeMdl(Mdl, NULL, PAGE_SIZE);
|
||||
MmBuildMdlFromPages(Mdl, &Page);
|
||||
MmReferencePage(Page);
|
||||
Mdl->MdlFlags |= MDL_PAGES_LOCKED;
|
||||
|
||||
file_offset.QuadPart = offset * PAGE_SIZE;
|
||||
|
@ -316,7 +315,6 @@ MmReadFromSwapPage(SWAPENTRY SwapEntry, PFN_NUMBER Page)
|
|||
|
||||
MmInitializeMdl(Mdl, NULL, PAGE_SIZE);
|
||||
MmBuildMdlFromPages(Mdl, &Page);
|
||||
MmReferencePage(Page);
|
||||
Mdl->MdlFlags |= MDL_PAGES_LOCKED;
|
||||
|
||||
file_offset.QuadPart = offset * PAGE_SIZE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue