mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 02:36:13 +00:00
[NTOSKRNL] Properly reset pinning state on pinning failure
This commit is contained in:
parent
54f89baad4
commit
b8e4af606a
1 changed files with 6 additions and 0 deletions
|
@ -191,6 +191,12 @@ CcPinMappedData (
|
|||
Result = ExAcquireSharedStarveExclusive(&iBcb->Lock, BooleanFlagOn(Flags, PIN_WAIT));
|
||||
}
|
||||
|
||||
if (!Result)
|
||||
{
|
||||
iBcb->Pinned = FALSE;
|
||||
iBcb->Vacb->PinCount--;
|
||||
}
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue