mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 01:42:30 +00:00
[NTOSKRNL] Properly reset pinning state on pinning failure
This commit is contained in:
parent
54f89baad4
commit
b8e4af606a
|
@ -191,6 +191,12 @@ CcPinMappedData (
|
|||
Result = ExAcquireSharedStarveExclusive(&iBcb->Lock, BooleanFlagOn(Flags, PIN_WAIT));
|
||||
}
|
||||
|
||||
if (!Result)
|
||||
{
|
||||
iBcb->Pinned = FALSE;
|
||||
iBcb->Vacb->PinCount--;
|
||||
}
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue